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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x110], eax
xor eax, eax
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 4], eax
test byte [0x42007a], 8
je 0x410f42
movzx eax, word [0x420076]
jmp 0x410f47
mov eax, 0xf
mov dword [ebp - 8], eax
mov ebx, dword [0x420080]
test ebx, ebx
je 0x410fd0
test byte [ebx + 8], 4
jne 0x410fc9
test byte [ebx + 8], 2
je 0x410f81
test byte [ebx + 8], 8
jne 0x410f81
test byte [ebx + 8], 0x20
jne 0x410f81
test byte [0x42007a], 0x10
jne 0x410f81
call fcn.004108db
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x410fd0
cmp dword [ebx], 0
je 0x410fc9
cmp dword [ebp - 0x110], 0x40
jae 0x410fa4
mov eax, dword [ebp - 0x110]
inc dword [ebp - 0x110]
mov edx, dword [ebx]
mov dword [ebp + eax*4 - 0x10c], edx
test byte [ebx + 8], 8
je 0x410fc8
cmp dword [ebp - 0x214], 0x40
jae 0x410fc8
mov eax, dword [ebp - 0x214]
inc dword [ebp - 0x214]
mov edx, dword [ebx]
mov dword [ebp + eax*4 - 0x210], edx
inc esi
mov ebx, dword [ebx + 0x2a]
test ebx, ebx
jne 0x410f54
cmp dword [ebp - 8], 0
je 0x410f19
test si, si
jne 0x410fe4
call fcn.004101c7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x27
je 0x410f19
mov ebx, dword [0x420080]
test ebx, ebx
je 0x41111c
test byte [ebx + 8], 4
jne 0x411111
test byte [ebx + 8], 8
je 0x41102e
lea eax, [ebp - 0x214]
push eax
push dword [ebx]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41102e
push ebx
call fcn.004106f6
pop ecx
jmp 0x411111
lea eax, [ebp - 0x110]
push eax
push dword [ebx]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4110b7
push 0
mov eax, dword [ebx + 0x26]
sub eax, dword [ebx + 0x22]
mov edx, 0x190
sub edx, eax
push edx
push dword [ebx + 0x26]
push dword [ebx]
call sub.WSOCK32.dll_recv
mov esi, eax
cmp si, 1
jge 0x411076
call sub.WSOCK32.dll_WSAGetLastError
push eax
push ebx
call fcn.004100e8
add esp, 8
jmp 0x411111
push 0x42092d
push dword [ebx + 0x22]
call fcn.00411860
add esp, 8
test eax, eax
je 0x411096
push esi
push ebx
call fcn.00410e8a
add esp, 8
jmp 0x4110b7
movsx eax, si
add eax, dword [ebx + 0x26]
sub eax, dword [ebx + 0x22]
mov edx, 0x190
sub edx, eax
dec edx
jge 0x4110ae
mov eax, dword [ebx + 0x22]
jmp 0x4110b4
movsx eax, si
add eax, dword [ebx + 0x26]
mov dword [ebx + 0x26], eax
test byte [ebx + 8], 8
je 0x4110e1
push 0
call fcn.00416160
pop ecx
sub eax, dword [ebx + 0xe]
movzx edx, word [0x420070]
cmp eax, edx
jl 0x4110e1
push 0x274c
push ebx
call fcn.004100e8
add esp, 8
test byte [ebx + 8], 1
je 0x411111
test byte [ebx + 8], 0x10
jne 0x411111
push 0
call fcn.00416160
pop ecx
sub eax, dword [ebx + 0x12]
movzx edx, word [0x420074]
cmp eax, edx
jl 0x411111
push 0x274c
push ebx
call fcn.004100e8
add esp, 8
mov ebx, dword [ebx + 0x2a]
test ebx, ebx
jne 0x411000
cmp dword [ebp - 0xc], 0
je 0x41113c
push 0
call fcn.00416160
pop ecx
sub eax, dword [ebp - 0xc]
movzx edx, word [0x420076]
cmp eax, edx
jle 0x410f19
test byte [0x42007a], 0x10
je 0x410f19
call fcn.00410ef3
mov dword [0x420088], eax
test eax, eax
je 0x410f19
mov eax, dword [0x420088]
test byte [eax + 8], 0x10
je 0x410f19
cmp dword [0x420084], 0
je 0x41117b
mov ebx, dword [0x420084]
jmp 0x411181
mov ebx, dword [0x420080]
xor esi, esi
push 0
call fcn.00416160
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x411227
test byte [ebx + 8], 0x40
jne 0x411204
push dword [ebx + 0x1a]
push 0x420930
lea eax, [ebp - 0x234]
push eax
call fcn.00413a10
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.0041177c
pop ecx
mov edi, eax
lea eax, [ebp - 0x234]
push eax
push dword [0x420088]
call fcn.00410569
add esp, 8
cmp di, ax
jne 0x411234
test byte [0x42007a], 1
je 0x411201
push dword [ebx + 0x1a]
push 0x420939
call fcn.00413978
add esp, 8
mov eax, dword [0x4162ad]
add eax, 0x18
push eax
call fcn.004135e0
pop ecx
inc esi
jmp 0x411215
call fcn.00410a95
test ax, ax
je 0x411215
mov si, word [0x420078]
cmp dword [ebx + 0x2a], 0
je 0x411220
mov eax, dword [ebx + 0x2a]
jmp 0x411225
mov eax, dword [0x420080]
mov ebx, eax
cmp si, word [0x420078]
jb 0x411193
mov dword [0x420084], ebx
jmp 0x410f19