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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004220a0
mov eax, dword [0x44ac68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xfff
xor ebx, ebx
lea eax, [ebp - 0x1003]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x1004], 0
call fcn.00420a60
add esp, 0xc
lea ecx, [ebp - 0x1010]
mov byte [ebp - 0x1005], 1
call fcn.00401660
mov eax, 0x43d4c8
cmp byte [ebp + 0xc], bl
jne 0x4038ee
mov eax, 0x43d6c4
push eax
push edi
lea ecx, [ebp - 0x1010]
call fcn.00401670
lea ecx, [ebp - 0x1010]
test al, al
jne 0x403922
call fcn.00401790
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042008f
mov esp, ebp
pop ebp
ret 8
call fcn.00401770
lea ecx, [ebp - 0x1010]
mov dword [esi + 0x23c], eax
call fcn.00401770
mov ecx, dword [esi + 0x254]
push ecx
push ebx
mov ecx, esi
mov dword [esi + 0x240], eax
call fcn.00401b30
test al, al
je 0x403c27
jmp 0x403960
mov eax, dword [esi + 0x194]
push ebx
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x403996
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x403c27
jmp 0x403c10
je 0x403c56
cmp byte [ebp - 0x1005], 0
je 0x403bcc
mov eax, dword [esi + 0x210]
mov ecx, dword [esi + 0x20c]
lea edx, [eax + edi]
cmp ecx, edx
jge 0x4039f1
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 0x4039e9
mov ecx, dword [esi + 0x20c]
add ecx, ebx
test ecx, ecx
jg 0x403a16
add dword [esi + 0x20c], ebx
xor ebx, 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
jmp 0x403a18
xor ebx, ebx
mov eax, dword [esi + 0x208]
push str._r_n_r_n
push eax
call fcn.00421770
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x403a37
add edi, 4
jmp 0x403a58
mov eax, dword [esi + 0x208]
push 0x43d6c0
push eax
call fcn.00421770
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x403c10
add edi, 2
cmp edi, ebx
je 0x403c10
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 0x403ac8
mov ecx, dword [esi + 0x20c]
add ecx, ebx
test ecx, ecx
jg 0x403ace
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
lea ecx, [ebp - 0x1010]
mov dword [esi + 0x220], eax
call fcn.00401770
xor ebx, ebx
mov edi, eax
cmp byte [ebp + 0xc], bl
jne 0x403b2c
cmp edi, ebx
je 0x403b2c
mov ecx, esi
call fcn.00401a20
cmp edi, eax
je 0x403c7d
mov ecx, esi
call fcn.00401a20
mov edx, dword [esi + 0x210]
add dword [esi + 0x234], edx
mov ecx, esi
mov dword [esi + 0x230], eax
call fcn.00401a20
add dword [esi + 0x23c], eax
mov eax, dword [esi + 0x210]
add dword [esi + 0x240], eax
mov eax, dword [esi + 0x248]
cmp eax, ebx
je 0x403b83
mov edx, dword [esi + 0x24c]
lea ecx, [esi + 0x224]
push ecx
push edx
call eax
add esp, 8
test al, al
je 0x403cac
mov eax, dword [esi + 0x210]
mov ecx, dword [esi + 0x208]
push eax
push ecx
lea ecx, [ebp - 0x1010]
call fcn.00401720
mov eax, dword [esi + 0x208]
cmp eax, ebx
je 0x403bc1
push eax
call fcn.0042088c
add esp, 4
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], ebx
mov byte [ebp - 0x1005], 0
xor ebx, ebx
jmp 0x403c10
mov eax, dword [esi + 0x248]
add dword [esi + 0x234], edi
add dword [esi + 0x240], edi
cmp eax, ebx
je 0x403bfd
mov ecx, dword [esi + 0x24c]
lea edx, [esi + 0x224]
push edx
push ecx
call eax
add esp, 8
test al, al
je 0x403cac
push edi
lea edx, [ebp - 0x1004]
push edx
lea ecx, [ebp - 0x1010]
call fcn.00401720
mov eax, dword [esi + 0x254]
push eax
push ebx
mov ecx, esi
call fcn.00401b30
test al, al
jne 0x403960
lea ecx, [ebp - 0x1010]
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
call fcn.00401790
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 8
mov eax, dword [esi + 0x248]
mov dword [esi + 0x22c], 4
cmp eax, ebx
je 0x403c7d
mov edx, dword [esi + 0x24c]
lea ecx, [esi + 0x224]
push ecx
push edx
call eax
add esp, 8
lea ecx, [ebp - 0x1010]
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
call fcn.00401790
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 8
lea ecx, [ebp - 0x1010]
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
call fcn.00401790
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 8