Function at 0x478220
Capabilities:
Write file on windows

Disassembly:
jmp 0x478220
push 0xffffffffffffffff
push 0x77f52e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov esi, ecx
cmp byte [esi + 4], 0
mov dword [esp + 0x14], eax
mov al, byte [esp + 0xcc]
jne 0x478286
test al, al
je 0x4785a2
cmp byte [esi + 0xd], 0
jne 0x4785a2
test al, al
je 0x47828e
mov byte [esi + 0xd], 1
cmp byte [esp + 0xc8], 0
mov edi, 7
je 0x478305
xor ecx, ecx
push 5
mov word [esp + 0x20], cx
push str.pclog
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
call fcn.00405ef2
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xb4], 0
call fcn.00407e1e
add esp, 4
cmp eax, 1
setne bl
cmp dword [esp + 0x30], 8
mov dword [esp + 0xb0], 0xffffffff
jb 0x4782fd
mov eax, dword [esp + 0x1c]
push eax
call fcn.00564155
add esp, 4
test bl, bl
jne 0x4785a2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call fcn.00408a76
mov ecx, eax
call fcn.00402095
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x78], cx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], 0
call fcn.00406f1e
mov dword [esp + 0xb0], 1
call fcn.00408a76
mov ecx, eax
call fcn.00408b66
cmp dword [esp + 0x80], 0
mov edi, eax
je 0x478587
test edi, edi
je 0x478587
cmp dword [esp + 0xbc], 0
je 0x478587
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x54]
call fcn.00402d88
push str.PCProxy.
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 2
call fcn.004050a1
cmp byte [esp + 0xc8], 0
je 0x4783ba
push 0x7b1510
lea ecx, [esp + 0x54]
call fcn.004050a1
push 0x7b1518
lea ecx, [esp + 0x8c]
call fcn.00403706
mov bl, 3
mov byte [esp + 0xb0], bl
cmp edi, 1
je 0x478447
cmp edi, 2
je 0x478457
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004077b6
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 6
call fcn.004019a1
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], bl
call fcn.00403a26
cmp byte [esp + 0xc0], 0
lea ecx, [esp + 0x50]
je 0x47842a
push str..r.log
jmp 0x47842f
push str..s.log
call fcn.004050a1
push 0x7b1554
lea ecx, [esp + 0x8c]
call fcn.00404db3
jmp 0x4784a8
push 0x7b1520
lea ecx, [esp + 0x54]
call fcn.004050a1
jmp 0x4784a8
mov edx, dword [esi + 8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004077b6
push str..log
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc4], 4
call fcn.0040657d
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 5
call fcn.004019a1
lea ecx, [esp + 0x34]
call fcn.00403a26
lea ecx, [esp + 0x18]
call fcn.00403a26
mov ecx, dword [esp + 0x8c]
mov eax, 8
cmp dword [esp + 0xa0], eax
jae 0x4784c4
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
jae 0x4784d2
lea eax, [esp + 0x54]
push ecx
push eax
call fcn.00564ed0
mov esi, eax
add esp, 8
test esi, esi
je 0x478570
mov bl, byte [esp + 0xc4]
cmp edi, 1
je 0x4784f7
cmp edi, 2
jne 0x478533
test bl, bl
jne 0x478533
cmp byte [esp + 0xc0], bl
je 0x478518
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xbc]
push edx
push eax
push str.Data_received___i__at___i_:
jmp 0x47852a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xbc]
push ecx
push edx
push str.Data_sent___i__at___i_:
push esi
call fcn.00567989
add esp, 0x10
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push ecx
call fcn.00564d88
add esp, 0x10
cmp edi, 1
je 0x478555
cmp edi, 2
jne 0x478567
test bl, bl
jne 0x478567
push 0x7b1598
push esi
call fcn.00567989
add esp, 8
push esi
call fcn.00564baa
add esp, 4
lea ecx, [esp + 0x88]
call fcn.00403a26
lea ecx, [esp + 0x50]
call fcn.00403a26
jmp 0x47858b
mov byte [esi + 4], 0
cmp dword [esp + 0x84], 8
jb 0x4785a2
mov edx, dword [esp + 0x70]
push edx
call fcn.00564155
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00564b24
add esp, 0xa4
ret 0x18