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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x43768a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
push 0
call fcn.00442400
add esp, 8
xor eax, eax
jne 0x437670
xor ecx, ecx
jne 0x437670
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
shr eax, 2
and eax, 1
je 0x4376ac
mov dword [ebp - 0x58], 0xffffffff
jmp 0x4378c8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043bf60
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jle 0x4376ca
cmp dword [ebp - 0x48], 0x1000
jle 0x4376d1
mov dword [ebp - 0x48], 0x1000
cmp dword [ebp + 0x10], 0
jl 0x4376df
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x48]
jle 0x4376e5
mov eax, dword [ebp - 0x48]
mov dword [ebp + 0x10], eax
push 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004394d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x43770d
mov dword [ebp - 0x58], 0xffffffff
jmp 0x4378c8
push 1
lea eax, [ebp - 0x50]
push eax
push 2
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00439a30
add esp, 0x18
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], 0
jmp 0x43773e
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x60]
jge 0x437768
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + ecx*8 - 0x24]
mov dword [ebp + eax*8 - 0x40], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + ecx*8 - 0x20]
mov dword [ebp + eax*8 - 0x44], edx
xor eax, eax
jne 0x437746
jmp 0x437735
mov dword [ebp - 0x68], 0
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x4377b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
jne 0x4377a7
mov dword [ebp - 0x48], 0
jmp 0x4377ae
mov dword [ebp - 0x48], 0xffffffff
jmp 0x4377b6
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
jne 0x4377c8
mov dword [ebp - 0x58], 0xffffffff
jmp 0x4378c8
cmp dword [ebp - 0x48], 0
jne 0x4377da
mov dword [ebp - 0x58], 0
jmp 0x4378c8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], 0
jmp 0x4377f2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x60]
jge 0x437898
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
and eax, 8
je 0x437814
mov dword [ebp - 0x64], 0
jmp 0x437831
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
add ecx, dword [eax + 0xc]
mov edx, dword [edx + 4]
sub edx, ecx
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x7fffffff
jbe 0x437847
mov dword [ebp - 0x54], bind
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x5c]
jge 0x43786d
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
jmp 0x43788b
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
jmp 0x437898
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
jmp 0x4377e9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00439c50
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x4378e2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
push 0
call fcn.00442430
add esp, 8
xor ecx, ecx
jne 0x4378c8
xor edx, edx
jne 0x4378c8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret