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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d086
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10096748]
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 0x1004413e
jmp 0x100443dc
mov edx, dword [ebp - 0x70]
movzx eax, byte [edx + 0x2c]
test eax, eax
je 0x1004414e
jmp 0x100443dc
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 0x100441e0
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 0x100443cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x2746
jne 0x100442e3
lea ecx, [ebp - 0x6c]
call fcn.1000b010
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.1000af50
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.10012cf0
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x60]
call fcn.10010150
lea ecx, [ebp - 0xc0]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10005610
mov ecx, dword [ebp - 0x70]
movzx edx, byte [ecx + 0x2d]
test edx, edx
jne 0x100442cf
mov eax, dword [ebp - 0x70]
cmp dword [eax + 8], 0
je 0x100442cf
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.1000e0e0
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.1000e0c0
jmp 0x100443cf
cmp dword [ebp - 0x74], 0x2733
je 0x100443cf
lea ecx, [ebp - 0x48]
call fcn.1000b010
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.1000af50
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 0x1008b684
lea eax, [ebp - 0x108]
push eax
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10010150
lea ecx, [ebp - 0x108]
call fcn.10005610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call fcn.10005610
mov edx, dword [ebp - 0x70]
movzx eax, byte [edx + 0x2d]
test eax, eax
jne 0x100443c0
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0xc], 0
je 0x100443c0
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x48]
push edx
call fcn.1000e0e0
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.1000e0c0
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.1004910b
mov esp, ebp
pop ebp
ret