Function at 0x403590
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004220a0
mov eax, dword [0x44ac68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfff
lea eax, [ebp - 0x1003]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x1004], 0
call fcn.00420a60
mov ecx, dword [esi + 0x254]
add esp, 0xc
push ecx
push 0
mov ecx, esi
mov byte [ebp - 0x1005], 1
call fcn.00401b30
test al, al
je 0x403816
jmp 0x4035f0
mov eax, dword [esi + 0x194]
push 0
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x403627
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x403816
jmp 0x4037fe
je 0x40382c
mov eax, dword [esi + 0x210]
mov ecx, dword [esi + 0x20c]
lea edx, [eax + edi]
cmp ecx, edx
jge 0x403673
sub eax, ecx
lea ebx, [edi + eax]
mov eax, dword [esi + 0x208]
add ecx, ebx
push ecx
push eax
call fcn.00421a5e
add esp, 8
mov dword [esi + 0x208], eax
test eax, eax
jne 0x40366d
mov ecx, dword [esi + 0x20c]
add ecx, ebx
test ecx, ecx
jg 0x403696
add dword [esi + 0x20c], ebx
mov eax, dword [esi + 0x210]
add eax, dword [esi + 0x208]
push edi
lea edx, [ebp - 0x1004]
push edx
push eax
call fcn.00420520
add esp, 0xc
add dword [esi + 0x210], edi
cmp byte [ebp - 0x1005], 0
je 0x4037d7
mov eax, dword [esi + 0x208]
push str._r_n_r_n
push eax
call fcn.00421770
mov edi, eax
add esp, 8
test edi, edi
je 0x4036c2
add edi, 4
jmp 0x4036e3
mov eax, dword [esi + 0x208]
push 0x43d6c0
push eax
call fcn.00421770
mov edi, eax
add esp, 8
test edi, edi
je 0x4037fe
add edi, 2
test edi, edi
je 0x4037fe
mov eax, dword [esi + 0x208]
mov ecx, edi
sub ecx, eax
push ecx
push eax
lea ecx, [esi + 0x214]
call fcn.00404fb0
sub edi, dword [esi + 0x208]
mov edx, dword [esi + 0x210]
mov eax, dword [esi + 0x208]
sub edx, edi
push edx
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00421c50
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x208]
mov ebx, edi
neg ebx
add edx, ebx
push edx
push eax
call fcn.00421a5e
add esp, 0x14
mov dword [esi + 0x208], eax
test eax, eax
jne 0x403753
mov ecx, dword [esi + 0x20c]
add ecx, ebx
test ecx, ecx
jg 0x403759
add dword [esi + 0x20c], ebx
sub dword [esi + 0x210], edi
mov eax, dword [esi + 0x218]
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push 1
push 0x20
push eax
call fcn.00404eb0
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0042188c
add esp, 0x18
mov ecx, esi
mov dword [esi + 0x220], eax
call fcn.00401a20
mov edx, dword [esi + 0x210]
add dword [esi + 0x234], edx
mov dword [esi + 0x230], eax
mov eax, dword [esi + 0x248]
test eax, eax
je 0x4037ce
mov edx, dword [esi + 0x24c]
lea ecx, [esi + 0x224]
push ecx
push edx
call eax
add esp, 8
test al, al
je 0x40387b
mov byte [ebp - 0x1005], 0
jmp 0x4037fe
mov eax, dword [esi + 0x248]
add dword [esi + 0x234], edi
test eax, eax
je 0x4037fe
mov edx, dword [esi + 0x24c]
lea ecx, [esi + 0x224]
push ecx
push edx
call eax
add esp, 8
test al, al
je 0x40387b
mov eax, dword [esi + 0x254]
push eax
push 0
mov ecx, esi
call fcn.00401b30
test al, al
jne 0x4035f0
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042008f
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [esi + 0x204]
push 0x43d8cc
call fcn.004029a0
mov eax, dword [esi + 0x248]
mov dword [esi + 0x22c], 4
test eax, eax
je 0x403865
mov edx, dword [esi + 0x24c]
lea ecx, [esi + 0x224]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042008f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0042008f
mov esp, ebp
pop ebp
ret