Function at 0x432290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5f7448]
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 esi, ecx
cmp byte [esi + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov al, byte [ebp + 0x1c]
jne 0x4322e4
test al, al
je 0x4325c5
cmp byte [esi + 0xd], 0
jne 0x4325c5
test al, al
je 0x4322ec
mov byte [esi + 0xd], 1
cmp byte [ebp + 0x18], 0
je 0x43234c
push str.pclog
lea ecx, [ebp - 0x28]
call fcn.004038b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040af50
add esp, 4
cmp eax, 1
setne bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x432330
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
jne 0x4325c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x8c], eax
call fcn.00411680
mov ecx, eax
call fcn.004127e0
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x40], cx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.00403fc0
mov dword [ebp - 4], 1
call fcn.00411680
mov ecx, eax
call fcn.004117d0
cmp dword [ebp - 0x30], 0
mov edi, eax
je 0x432595
test edi, edi
je 0x432595
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x432595
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00403fc0
mov byte [ebp - 4], 2
push 0x5829d8
lea ecx, [ebp - 0x28]
call fcn.004039f0
cmp byte [ebp + 0x18], 0
je 0x432419
push 0x5829ec
lea ecx, [ebp - 0x28]
call fcn.004039f0
push 0x5829f4
lea ecx, [ebp - 0x58]
call fcn.004038b0
mov byte [ebp - 4], 3
cmp edi, 1
je 0x4324dd
push dword [esi + 8]
cmp edi, 2
je 0x43248d
lea eax, [ebp - 0x70]
push eax
call fcn.0045eff0
add esp, 8
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403d80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00403930
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x28]
je 0x432474
push str..r.log
jmp 0x432479
push str..s.log
call fcn.004039f0
push 0x5829f4
lea ecx, [ebp - 0x58]
call fcn.004039a0
jmp 0x4324ea
lea eax, [ebp - 0x88]
push eax
call fcn.0045eff0
mov byte [ebp - 4], 4
push str..log
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040ce70
add esp, 0x14
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403d80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00403930
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00403930
jmp 0x4324ea
push 0x5829fc
lea ecx, [ebp - 0x28]
call fcn.004039f0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.004ad4a2
mov esi, eax
add esp, 8
test esi, esi
je 0x43257b
cmp edi, 1
je 0x43251a
cmp edi, 2
jne 0x432542
cmp byte [ebp + 0x14], 0
jne 0x432542
cmp byte [ebp + 0x10], 0
push dword [ebp - 0x8c]
push ebx
je 0x432534
push str.Data_received___i__at___i_:
jmp 0x432539
push str.Data_sent___i__at___i_:
push esi
call fcn.004b0a53
add esp, 0x10
push esi
push 1
push ebx
push dword [ebp - 0x90]
call fcn.004ad424
add esp, 0x10
cmp edi, 1
je 0x43255e
cmp edi, 2
jne 0x432572
cmp byte [ebp + 0x14], 0
jne 0x432572
push 0x582508
push esi
call fcn.004b0a53
add esp, 8
push esi
call fcn.004ad256
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403930
jmp 0x432599
mov byte [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x4325b1
push dword [ebp - 0x40]
call fcn.004ad196
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
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.004adbd4
mov esp, ebp
pop ebp
ret 0x18