Advertisement
Asyncron

Untitled

Jul 2nd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. void sub_616268()
  2. {
  3. int v0; // eax@1
  4. DWORD v1; // eax@2
  5. unsigned int v2; // edi@7
  6. int *v3; // esi@8
  7. int v4; // eax@20
  8. char v5; // [sp+Ch] [bp-24h]@6
  9. unsigned int v6; // [sp+1Ch] [bp-14h]@7
  10. char v7; // [sp+23h] [bp-Dh]@6
  11. int v8; // [sp+2Ch] [bp-4h]@6
  12. char v9; // [sp+30h] [bp+0h]@7
  13. char Dst; // [sp+31h] [bp+1h]@7
  14.  
  15. v0 = sub_4C9CF9();
  16. if ( !(unsigned __int8)sub_5D3AE0(v0) )
  17. return;
  18. v1 = timeGetTime();
  19. if ( byte_A4CD90 || v1 - dword_A56470 < dword_A56474 + 1800000 )
  20. goto LABEL_18;
  21. if ( (unsigned __int8)sub_67D1D2(cp) )
  22. {
  23. sub_40BE37();
  24. sub_6A4419(7, 0, 0, 0, 0);
  25. }
  26. CFile::CFile(&v5);
  27. v8 = 0;
  28. v7 = 1;
  29. if ( !CFile::Open((CFile *)&v5, "server.dat", 0x8000u, 0) )
  30. goto LABEL_16;
  31. v9 = 0;
  32. memset(&Dst, 0, 0x3FFu);
  33. v2 = 0;
  34. v6 = CFile::Read((CFile *)&v5, &v9, 0x400u);
  35. if ( (signed int)v6 <= 0 )
  36. goto LABEL_15;
  37. while ( 1 )
  38. {
  39. v3 = (int *)(&v9 + v2);
  40. if ( !IsDBCSLeadByte(*(&v9 + v2)) )
  41. break;
  42. ++v2;
  43. LABEL_12:
  44. ++v2;
  45. if ( (signed int)v2 >= (signed int)v6 )
  46. goto LABEL_15;
  47. }
  48. if ( isprint(*(_BYTE *)v3) || isspace(*(_BYTE *)v3) )
  49. goto LABEL_12;
  50. v7 = 0;
  51. LABEL_15:
  52. CFile::Close((CFile *)&v5);
  53. if ( v7 )
  54. {
  55. LABEL_16:
  56. sub_40BE37();
  57. sub_6A4419(16, 0, 0, 0, 0);
  58. }
  59. byte_A4CD90 = 1;
  60. v8 = -1;
  61. CFile::~CFile((CFile *)&v5);
  62. LABEL_18:
  63. if ( byte_A4CDA0 )
  64. {
  65. sub_40BE37();
  66. sub_6A4419(14, 0, 0, 0, 0);
  67. byte_A4CDA0 = 0;
  68. }
  69. v4 = sub_61534A();
  70. sub_6B7CEF(v4);
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement