Function at 0x470c90
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe88
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x43c], 0
mov al, byte [0x5f7171]
mov byte [ebp - 0x220], al
push 0xfe
push 0
lea ecx, [ebp - 0x21f]
push ecx
call fcn.005323e0
add esp, 0xc
mov dl, byte [0x5f7172]
mov byte [ebp - 0x438], dl
push 0xfe
push 0
lea eax, [ebp - 0x437]
push eax
call fcn.005323e0
add esp, 0xc
mov cl, byte [0x5f7173]
mov byte [ebp - 0x118], cl
push 0xfe
push 0
lea edx, [ebp - 0x117]
push edx
call fcn.005323e0
add esp, 0xc
mov al, byte [0x5f7174]
mov byte [ebp - 0x330], al
push 0xfe
push 0
lea ecx, [ebp - 0x32f]
push ecx
call fcn.005323e0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x22c], 0
cmp dword [ebp + 0x14], 0xffff
jle 0x470dba
push 0x5f7175
push 0x5f7176
push 0x56888c
push str.Error:_Trying_to_send_data_larger_than_65k_bytes.
call fcn.00422b80
add esp, 0x10
push 0x5f7177
push 2
call fcn.00436500
add esp, 8
call fcn.00483f80
push eax
push str.IN__s
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 2
call fcn.00436500
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.Calling_SendDataToServer__s_.
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 2
call fcn.00436500
add esp, 8
cmp dword [0x5fdb24], 1
jne 0x470e3f
push str.quitFlagTRUE
push 2
call fcn.00436500
add esp, 8
mov eax, 0xfffffffe
jmp 0x4719a0
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00414cd0
add esp, 0xc
mov dword [ebp - 0x43c], eax
cmp dword [0x5f711c], 0
jne 0x470e96
mov ecx, dword [ebp + 8]
push ecx
push str.receiveBufferHANDLENULL_
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 2
call fcn.00436500
add esp, 8
or eax, 0xffffffff
jmp 0x4719a0
mov ecx, dword [0x5f6624]
mov byte [ecx], 0
push 0x5f6d98
push 0x568934
lea edx, [ebp - 0x640]
push edx
call fcn.00532706
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x5f6d48
push 0x5f6948
push 0x5f6b48
push 0x5f6848
push str.__s_s_s__sCMD_s__s
lea edx, [ebp - 0x740]
push edx
call fcn.00532706
add esp, 0x20
movsx eax, byte [0x5c74a8]
test eax, eax
je 0x470f9f
cmp dword [0x5c75a8], 0x42
jne 0x470f9f
cmp dword [0x5f662c], 1
jne 0x470f9f
push 0x5c74a8
push str._s_CMD
lea ecx, [ebp - 0x948]
push ecx
call fcn.00532706
add esp, 0xc
push 0x568958
lea edx, [ebp - 0x948]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x844]
push eax
push 1
lea ecx, [ebp - 0x740]
push ecx
call fcn.00532e80
add esp, 4
push eax
lea edx, [ebp - 0x740]
push edx
call fcn.005337fa
add esp, 0x10
mov eax, dword [ebp - 0x844]
push eax
push 1
push 0x56895c
call fcn.00532e80
add esp, 4
push eax
push 0x568960
call fcn.005337fa
add esp, 0x10
mov ecx, dword [ebp - 0x844]
push ecx
call fcn.00431d50
add esp, 4
cmp dword [0x5f6644], 1
jne 0x470fca
mov edx, dword [0x5f6640]
push edx
push 0x5f70d8
push str._s:_d
lea eax, [ebp - 0x540]
push eax
call fcn.00532706
add esp, 0x10
jmp 0x470fd1
mov byte [ebp - 0x540], 0
push str.c:_templogfile.txt
lea ecx, [ebp - 0x840]
push ecx
call fcn.00532580
add esp, 8
push 0x5f7178
lea edx, [ebp - 0x840]
push edx
call fcn.00532580
add esp, 8
push 4
mov eax, dword [ebp + 8]
push eax
push 0x5c4c5c
call fcn.00532bd0
add esp, 0xc
mov byte [0x5c4c60], 0
mov ecx, dword [ebp - 0x43c]
add ecx, dword [ebp - 0x224]
mov byte [ecx], 0
lea edx, [ebp - 0x11c]
push edx
push 0x5f6624
push 0
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
push 0
push 1
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0x540]
push eax
lea ecx, [ebp - 0x740]
push ecx
lea edx, [ebp - 0x640]
push edx
call fcn.00432ac0
add esp, 0x2c
mov eax, dword [ebp - 0x43c]
push eax
call fcn.00532828
add esp, 4
mov dword [ebp - 0x43c], 0
mov ecx, dword [0x5f9e2c]
and ecx, 0x80
je 0x4710a6
push 0x568980
push 2
call fcn.00436500
add esp, 8
mov eax, 0xfffffffe
jmp 0x4719a0
mov dword [ebp - 0x334], 0
cmp dword [ebp - 0x334], 0
jne 0x4718df
mov edx, dword [ebp - 0x11c]
push edx
push str.Bytes_downloaded:__d.
lea eax, [ebp - 0x220]
push eax
call fcn.00532706
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push 3
call fcn.00436500
add esp, 8
push 0x5689b8
mov edx, dword [0x5f6624]
push edx
call fcn.00532680
add esp, 8
mov dword [ebp - 0x338], eax
movsx eax, byte [0x5c74a8]
test eax, eax
je 0x47118b
cmp dword [0x5c75a8], 0x42
jne 0x47118b
cmp dword [0x5f662c], 1
jne 0x47118b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x5c74a8
push 0x5689c0
lea edx, [ebp - 0xa50]
push edx
call fcn.00532706
add esp, 0x14
push 0x5689cc
lea eax, [ebp - 0xa50]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x94c], eax
mov ecx, dword [ebp - 0x94c]
push ecx
push 1
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [0x5f6624]
push eax
call fcn.005337fa
add esp, 0x10
mov ecx, dword [ebp - 0x94c]
push ecx
call fcn.00431d50
add esp, 4
call fcn.00483f80
push eax
push 0x5689d0
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 2
call fcn.00436500
add esp, 8
push 0x5f7179
push 2
call fcn.00436500
add esp, 8
mov ecx, dword [0x5f6624]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x5f6624]
add edx, 4
push edx
call fcn.00472550
add esp, 4
cmp dword [0x5fdb24], 1
jne 0x471200
push str.after_FAQ_Message
push 2
call fcn.00436500
add esp, 8
or eax, 0xffffffff
jmp 0x4719a0
push 0x5689fc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00532680
add esp, 8
test eax, eax
je 0x47124a
push 0x96
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x330]
push edx
call fcn.00532bd0
add esp, 0xc
mov byte [ebp - 0x29a], 0
lea eax, [ebp - 0x330]
push eax
push 2
call fcn.00436500
add esp, 8
jmp 0x4712d9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00532e80
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x440], edx
cmp dword [ebp - 0x440], 0xf0
jle 0x47127f
mov dword [ebp - 0x440], 0xf0
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x330]
push edx
call fcn.00532bd0
add esp, 0xc
mov eax, dword [ebp - 0x440]
mov byte [ebp + eax - 0x330], 0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x440]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x440]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x330]
push eax
push 2
call fcn.00436500
add esp, 8
cmp dword [ebp - 8], 0
jg 0x471260
cmp dword [ebp - 0x338], 0
je 0x4712f2
mov ecx, dword [ebp - 0x338]
add ecx, 4
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
jmp 0x47130b
push str.no_proper_html_header
push 2
call fcn.00436500
add esp, 8
mov eax, 0xfffffffd
jmp 0x4719a0
push 4
push str.COMP
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x471573
push 8
push 6
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0xa58], eax
push 8
push 0xf
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00433b80
add esp, 0xc
mov dword [ebp - 0xa60], eax
mov eax, dword [ebp - 0xa60]
add eax, 0x400
push eax
call fcn.005324a9
add esp, 4
mov dword [ebp - 0xa5c], eax
cmp dword [ebp - 0xa5c], 0
jne 0x4713b1
mov ecx, dword [ebp - 0xa60]
push ecx
push str.Error_allocating_memory_for_uncompress_buffer__d
lea edx, [ebp - 0xb60]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0xb60]
push eax
push 3
call fcn.00436500
add esp, 8
mov eax, 0xfffffffd
jmp 0x4719a0
mov ecx, dword [ebp - 0xa58]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
add eax, 0x16
push eax
lea ecx, [ebp - 0xa60]
push ecx
mov edx, dword [ebp - 0xa5c]
push edx
call fcn.0049d3d0
add esp, 0x10
mov dword [ebp - 0xa54], eax
cmp dword [ebp - 0xa54], 0
je 0x471443
mov eax, dword [ebp - 0xa60]
push eax
mov ecx, dword [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0xa54]
push edx
push str.Error__d_with_uncompress__d______d
lea eax, [ebp - 0xc60]
push eax
call fcn.00532706
add esp, 0x14
lea ecx, [ebp - 0xc60]
push ecx
push 3
call fcn.00436500
add esp, 8
mov edx, dword [ebp - 0xa5c]
push edx
call fcn.00532828
add esp, 4
mov dword [ebp - 0xa5c], 0
mov eax, 0xfffffffd
jmp 0x4719a0
mov eax, dword [0x5f6624]
push eax
push 0
mov ecx, dword [0x5f711c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xa60]
cmp edx, dword [ebp - 0xc]
jbe 0x47148d
mov eax, dword [ebp - 0xa60]
add eax, 0x400
push eax
mov ecx, dword [0x5f6624]
push ecx
push 8
mov edx, dword [0x5f711c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [0x5f6624], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [0x5f6624]
mov dword [eax], ecx
push 0xa
push 0
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa60]
lea edx, [eax + ecx - 6]
push edx
call fcn.005323e0
add esp, 0xc
mov eax, dword [ebp - 0xa60]
push eax
mov ecx, dword [ebp - 0xa5c]
push ecx
mov edx, dword [0x5f6624]
push edx
call fcn.00533040
add esp, 0xc
mov eax, dword [ebp - 0xa5c]
push eax
call fcn.00532828
add esp, 4
mov dword [ebp - 0xa5c], 0
movsx ecx, byte [0x5c74a8]
test ecx, ecx
je 0x471573
cmp dword [0x5c75a8], 0x42
jne 0x471573
cmp dword [0x5f662c], 1
jne 0x471573
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x5c74a8
push str._s__8ld__s
lea eax, [ebp - 0xd68]
push eax
call fcn.00532706
add esp, 0x14
push 0x568a88
lea ecx, [ebp - 0xd68]
push ecx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xc64], eax
mov edx, dword [ebp - 0xc64]
push edx
push 1
mov eax, dword [ebp - 0xa60]
push eax
mov ecx, dword [0x5f6624]
push ecx
call fcn.005337fa
add esp, 0x10
mov edx, dword [ebp - 0xc64]
push edx
call fcn.00431d50
add esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00472550
add esp, 4
cmp dword [0x5fdb24], 0
je 0x471592
or eax, 0xffffffff
jmp 0x4719a0
push str.QUIT
mov edx, dword [ebp + 8]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
je 0x4718da
push 3
push 0x568a94
mov eax, dword [ebp + 8]
push eax
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x4718da
push str._HTML_
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x471626
push str._html_
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x471626
push 0x568aa8
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00532680
add esp, 8
test eax, eax
jne 0x471626
push 0x568ab8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4717a1
cmp dword [ebp - 0x22c], 0
jne 0x4716d9
push str.Bad_Session_ID
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x471661
push 0x568ae0
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00532680
add esp, 8
test eax, eax
je 0x4716d9
movsx ecx, byte [0xd84a80]
test ecx, ecx
je 0x4716d9
mov byte [0x5f6d48], 0
call fcn.0046f920
push 0xd846c0
push 0xd84a80
call fcn.0046ec00
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4716d9
movsx edx, byte [0x5f7120]
test edx, edx
je 0x4716d9
lea eax, [ebp - 0xd84]
push eax
lea ecx, [ebp - 0xd6c]
push ecx
push 0x5f7120
push str.GRPC
call fcn.0046fc50
add esp, 0x10
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x22c], 1
jmp 0x470d95
push str.FIND
mov edx, dword [ebp + 8]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4716f6
or eax, 0xffffffff
jmp 0x4719a0
cmp dword [0x5f9e2c], 0
je 0x471716
mov eax, dword [0x5f9e2c]
or eax, 0x80
mov dword [0x5f9e2c], eax
or eax, 0xffffffff
jmp 0x4719a0
lea ecx, [ebp - 0x438]
push ecx
push str.MSG_RSConnectionTimedOut
push 0
call fcn.0046d1b0
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push str.MSG_PleaseCnnectAgain
push 0
call fcn.0046d1b0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x438]
push ecx
push 0x568b3c
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0x10
push 0x5f717a
push 0x5f717b
push 0x568b44
lea eax, [ebp - 0x220]
push eax
call fcn.00422b80
add esp, 0x10
push 0x5f717c
push 0x79f
push 0x568b54
call fcn.00431ee0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4719a0
push 4
push 0x568b68
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00532db5
add esp, 0xc
test eax, eax
je 0x4718da
push str.__html_
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x4717f0
push str.__HTML_
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00532680
add esp, 8
test eax, eax
je 0x4718c3
push str.GRLW
mov ecx, dword [ebp + 8]
push ecx
call fcn.005327a0
add esp, 8
test eax, eax
je 0x4718c3
push str.No_instance_available
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00532680
add esp, 8
test eax, eax
jne 0x4718c3
push 0x5c5ed8
push str._sHTTPError.html
lea ecx, [ebp - 0xe88]
push ecx
call fcn.00532706
add esp, 0xc
push 0x568bb4
lea edx, [ebp - 0xe88]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0xd88], eax
cmp dword [ebp - 0xd88], 0
je 0x4718c3
mov eax, dword [ebp - 0xd88]
push eax
push 1
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00532e80
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.005337fa
add esp, 0x10
mov edx, dword [ebp - 0xd88]
push edx
call fcn.00431d50
add esp, 4
lea eax, [ebp - 0xe88]
push eax
call fcn.004894f0
add esp, 4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00532e80
add esp, 4
push eax
push 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.005323e0
add esp, 0xc
push str.after_non_ANSW
push 2
call fcn.00436500
add esp, 8
or eax, 0xffffffff
jmp 0x4719a0
jmp 0x47199e
push 0x5f717d
call fcn.00472480
add esp, 4
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x471928
push 0x5f717e
push 0x7bf
push str.SendDataToServer
call fcn.00431ee0
add esp, 0xc
push str.not_able_to_talk_to_the_server
push 2
call fcn.00436500
add esp, 8
mov eax, 0xfffffffe
jmp 0x4719a0
mov edx, dword [ebp - 0x334]
push edx
push str.Error_with_network__SendDataToServer___d.
lea eax, [ebp - 0x220]
push eax
call fcn.00532706
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push 0
call fcn.00436500
add esp, 8
call fcn.00483f80
push eax
push str.OUT__s
lea edx, [ebp - 0x220]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 2
call fcn.00436500
add esp, 8
push 0x5f717f
push 2
call fcn.00436500
add esp, 8
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov eax, 0xfffffffe
jmp 0x4719a0
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret