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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c29c6
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x4531ae
jmp 0x453677
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 0x60]
test eax, eax
je 0x4531be
jmp 0x453677
mov ecx, dword [ebp - 0x60]
add ecx, 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov ecx, dword [edx + 0xe4]
sub ecx, dword [eax + 0xf0]
test ecx, ecx
jle 0x45361e
push 0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov ecx, dword [edx + 0xe4]
sub ecx, dword [eax + 0xf0]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xf8]
mov ecx, dword [ebp - 0x60]
add eax, dword [ecx + 0xf0]
push eax
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jle 0x45352d
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf0]
add edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
mov dword [eax + 0xf0], edx
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0xe8]
test edx, edx
je 0x453478
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.004530c0
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x58]
call fcn.00408fb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 1
je 0x45329d
cmp dword [ebp - 0x6c], 2
je 0x453398
jmp 0x45345a
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 0x68]
test eax, eax
je 0x453320
mov ecx, dword [ebp - 0x60]
add ecx, 0x6c
call fcn.00406720
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x84
call fcn.00406720
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xfc]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf8]
add edx, 4
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.00438fe0
add esp, 0x14
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xfc]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call ecx
add esp, 0xc
jmp 0x453340
mov edx, dword [ebp - 0x5c]
add edx, 4
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xf8]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call ecx
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 4
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xf0]
sub ecx, edx
mov edx, dword [ebp - 0x60]
mov dword [edx + 0xf0], ecx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0xf0], 0
jle 0x453393
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf0]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xf8]
mov edx, dword [ebp - 0x5c]
lea eax, [ecx + edx + 4]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf8]
push edx
call fcn.00581d80
add esp, 0xc
jmp 0x45345a
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00408770
add esp, 8
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x9c]
push eax
push 0x60ed48
lea ecx, [ebp - 0x110]
push ecx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040f5d0
lea ecx, [ebp - 0x110]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.004066a0
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
jne 0x45345a
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x14], 0
je 0x45345a
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea eax, [ebp - 0x58]
push eax
call fcn.004099c0
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x14]
call eax
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004099a0
cmp dword [ebp - 0x68], 1
je 0x45325f
jmp 0x453528
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0x68]
test edx, edx
je 0x4534f8
mov ecx, dword [ebp - 0x60]
add ecx, 0x6c
call fcn.00406720
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x84
call fcn.00406720
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xf0]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xfc]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf8]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00438fe0
add esp, 0x14
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xfc]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 8]
call ecx
add esp, 0xc
jmp 0x45351b
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xf0]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xf8]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 8]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x60]
mov dword [eax + 0xf0], 0
jmp 0x45361c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x2733
je 0x45361c
lea ecx, [ebp - 0x34]
call fcn.00408fb0
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x2c], 1
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.00408770
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x88]
push edx
push str.recv_error:
lea eax, [ebp - 0xc8]
push eax
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f5d0
lea ecx, [ebp - 0xc8]
call fcn.004066a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.004066a0
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 0x61]
test eax, eax
jne 0x45360d
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 0x14], 0
je 0x45360d
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xac], esp
lea edx, [ebp - 0x34]
push edx
call fcn.004099c0
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x14]
call edx
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004099a0
jmp 0x453667
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0xe4]
sub edx, dword [ecx + 0xf0]
jne 0x453667
push 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0xe4]
sub edx, dword [ecx + 0xf0]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xf8]
mov edx, dword [ebp - 0x60]
add ecx, dword [edx + 0xf0]
push ecx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [ebp - 0x60]
add edx, 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00581b80
mov esp, ebp
pop ebp
ret