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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c886
mov eax, dword fs:[0]
push eax
sub esp, 0xec
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 - 0x60], ecx
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x1003e00e
jmp 0x1003e3b9
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 0x60]
test eax, eax
je 0x1003e01e
jmp 0x1003e3b9
mov ecx, dword [ebp - 0x60]
add ecx, 0x68
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov ecx, dword [edx + 0xb0]
sub ecx, dword [eax + 0xbc]
test ecx, ecx
jle 0x1003e363
push 0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov ecx, dword [edx + 0xb0]
sub ecx, dword [eax + 0xbc]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc4]
mov ecx, dword [ebp - 0x60]
add eax, dword [ecx + 0xbc]
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 0x1003e27e
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xbc]
add edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
mov dword [eax + 0xbc], edx
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0xb4]
test edx, edx
je 0x1003e249
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.1003df20
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x58]
call fcn.1000b010
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 1
je 0x1003e0fa
cmp dword [ebp - 0x6c], 2
je 0x1003e172
jmp 0x1003e22e
mov edx, dword [ebp - 0x5c]
add edx, 4
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc4]
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 + 0xbc]
sub ecx, edx
mov edx, dword [ebp - 0x60]
mov dword [edx + 0xbc], ecx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0xbc], 0
jle 0x1003e16d
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xbc]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc4]
mov edx, dword [ebp - 0x5c]
lea eax, [ecx + edx + 4]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xc4]
push edx
call fcn.10049340
add esp, 0xc
jmp 0x1003e22e
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 - 0xc8]
push ecx
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x88]
push eax
push 0x1008b484
lea ecx, [ebp - 0xf8]
push ecx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.10010150
lea ecx, [ebp - 0xf8]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.10005610
mov eax, dword [ebp - 0x60]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
jne 0x1003e22e
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x14], 0
je 0x1003e22e
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x90], esp
lea eax, [ebp - 0x58]
push eax
call fcn.1000e0e0
mov dword [ebp - 0x98], 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.1000e0c0
cmp dword [ebp - 0x68], 1
je 0x1003e0bc
jmp 0x1003e279
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0xbc]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc4]
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 - 0x60]
mov dword [edx + 0xbc], 0
jmp 0x1003e361
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x2733
je 0x1003e361
lea ecx, [ebp - 0x34]
call fcn.1000b010
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
push ecx
push str.recv_error:
lea edx, [ebp - 0xb0]
push edx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x28]
call fcn.10010150
lea ecx, [ebp - 0xb0]
call fcn.10005610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.10005610
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0x61]
test edx, edx
jne 0x1003e352
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x14], 0
je 0x1003e352
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x94], esp
lea edx, [ebp - 0x34]
push edx
call fcn.1000e0e0
mov dword [ebp - 0x8c], 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.1000e0c0
jmp 0x1003e3ac
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0xb0]
sub edx, dword [ecx + 0xbc]
jne 0x1003e3ac
push 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0xb0]
sub edx, dword [ecx + 0xbc]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc4]
mov edx, dword [ebp - 0x60]
add ecx, dword [edx + 0xbc]
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, 0x68
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.1004910b
mov esp, ebp
pop ebp
ret