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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca916
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x2d]
test ecx, ecx
je 0x45fc9e
jmp 0x45ff3c
mov edx, dword [ebp - 0x70]
movzx eax, byte [edx + 0x2c]
test eax, eax
je 0x45fcae
jmp 0x45ff3c
mov ecx, dword [ebp - 0x70]
add ecx, 0x34
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov word [ebp - 0x22], dx
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x7c]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x7c], eax
movzx eax, word [ebp - 0x22]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x78], ax
cmp dword [ebp - 0x80], 0
jl 0x45fd40
movzx ecx, word [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
call edx
add esp, 0x14
jmp 0x45ff2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x2746
jne 0x45fe43
lea ecx, [ebp - 0x6c]
call fcn.00408fb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.00408770
add esp, 8
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x88]
push ecx
push str.recvfrom_error:
lea edx, [ebp - 0xc0]
push edx
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040f5d0
lea ecx, [ebp - 0xc0]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.004066a0
mov ecx, dword [ebp - 0x70]
movzx edx, byte [ecx + 0x2d]
test edx, edx
jne 0x45fe2f
mov eax, dword [ebp - 0x70]
cmp dword [eax + 8], 0
je 0x45fe2f
movzx ecx, word [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x6c]
push eax
call fcn.004099c0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 8]
call eax
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004099a0
jmp 0x45ff2f
cmp dword [ebp - 0x74], 0x2733
je 0x45ff2f
lea ecx, [ebp - 0x48]
call fcn.00408fb0
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x40], 1
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00408770
add esp, 8
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x8c]
push edx
push 0x616154
lea eax, [ebp - 0x108]
push eax
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040f5d0
lea ecx, [ebp - 0x108]
call fcn.004066a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call fcn.004066a0
mov edx, dword [ebp - 0x70]
movzx eax, byte [edx + 0x2d]
test eax, eax
jne 0x45ff20
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0xc], 0
je 0x45ff20
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x48]
push edx
call fcn.004099c0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004099a0
mov eax, dword [ebp - 0x70]
add eax, 0x34
push eax
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.00588246
mov esp, ebp
pop ebp
ret