Function at 0x487c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59122e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 4], 0
mov dword [ebp - 0xa4], eax
mov al, byte [ebp + 0x1c]
jne 0x487ca4
test al, al
je 0x487f3a
cmp byte [esi + 0xe], 0
jne 0x487f3a
test al, al
je 0x487cac
mov byte [esi + 0xe], 1
cmp byte [ebp + 0x18], 0
mov edi, 7
je 0x487d0a
xor ecx, ecx
push 5
mov word [ebp - 0x48], cx
xor ebx, ebx
push str.pclog
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.00403594
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], ebx
call fcn.00407554
add esp, 4
cmp eax, 1
setne bl
cmp dword [ebp - 0x34], 8
mov dword [ebp - 4], 0xffffffff
jb 0x487d02
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053ed60
add esp, 4
test bl, bl
jne 0x487f3a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa0], eax
call fcn.00401cb7
mov ecx, eax
call fcn.00403ba7
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x64], cx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
call fcn.0040566e
mov dword [ebp - 4], 1
call fcn.00401cb7
mov ecx, eax
call fcn.00401eec
cmp dword [ebp - 0x54], 0
mov ebx, eax
je 0x487f24
test ebx, ebx
je 0x487f24
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x487f24
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004055a1
push 8
push str.PCProxy.
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040605a
cmp byte [ebp + 0x18], 0
je 0x487da2
push 0x5b5084
lea ecx, [ebp - 0x2c]
call fcn.00408dc8
push 0x5b508c
lea ecx, [ebp - 0x80]
call fcn.00406802
mov byte [ebp - 4], 3
cmp ebx, 1
je 0x487e19
cmp ebx, 2
je 0x487e28
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00406852
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00402815
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00406dfc
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x2c]
je 0x487e00
push str..r.log
jmp 0x487e05
push str..s.log
call fcn.00408dc8
push 0x5b50c8
lea ecx, [ebp - 0x80]
call fcn.00408a8f
jmp 0x487e72
push 0x5b5094
lea ecx, [ebp - 0x2c]
call fcn.00408dc8
jmp 0x487e72
mov edx, dword [esi + 8]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00406852
push str..log
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 4
call fcn.00408c33
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00402815
lea ecx, [ebp - 0x9c]
call fcn.00406dfc
lea ecx, [ebp - 0x48]
call fcn.00406dfc
mov ecx, dword [ebp - 0x80]
mov eax, 8
cmp dword [ebp - 0x6c], eax
jae 0x487e82
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x487e8d
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.0054009f
mov esi, eax
add esp, 8
test esi, esi
je 0x487f12
cmp ebx, 1
je 0x487ea7
cmp ebx, 2
jne 0x487ed8
cmp byte [ebp + 0x14], 0
jne 0x487ed8
cmp byte [ebp + 0x10], 0
je 0x487ec2
mov edx, dword [ebp - 0xa0]
push edx
push edi
push str.Data_received___i__at___i_:
jmp 0x487ecf
mov eax, dword [ebp - 0xa0]
push eax
push edi
push str.Data_sent___i__at___i_:
push esi
call fcn.00542b07
add esp, 0x10
mov ecx, dword [ebp - 0xa4]
push esi
push 1
push edi
push ecx
call fcn.0053ff67
add esp, 0x10
cmp ebx, 1
je 0x487ef5
cmp ebx, 2
jne 0x487f09
cmp byte [ebp + 0x14], 0
jne 0x487f09
push 0x5b510c
push esi
call fcn.00542b07
add esp, 8
push esi
call fcn.0053fd9c
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.00406dfc
lea ecx, [ebp - 0x2c]
call fcn.00406dfc
jmp 0x487f28
mov byte [esi + 4], 0
cmp dword [ebp - 0x50], 8
jb 0x487f3a
mov edx, dword [ebp - 0x64]
push edx
call fcn.0053ed60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0x18