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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [0x56ae34], 0
jne 0x441149
push 0
call fcn.0049cf70
add esp, 4
add eax, dword [0x56ae2c]
mov dword [0x56ae34], eax
mov eax, dword [0x56ae34]
mov dword [ebp - 0x14], eax
jmp 0x441152
mov ecx, dword [0x56ae34]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x441255
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x44119b
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xac]
cmp edx, 1
jne 0x44119b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2f8], 0x17ca
ja 0x441255
push 0
call sub.WS2_32.dll_WSASetLastError
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 0x10000000
test edx, edx
je 0x4411cd
push 0x2000
push 0x56e7b8
mov eax, dword [ebp + 8]
push eax
call fcn.00402135
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4411e8
push 0
push 0x2000
push 0x56e7b8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call sub.WS2_32.dll_recv
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc0], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0xc0]
cmp ecx, dword [eax + 0xb8]
jle 0x44121a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc0]
mov dword [edx + 0xb8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0xffffbffe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
cmp dword [ebp - 4], 0
jge 0x441247
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x441247
mov eax, 1
jmp 0x4415af
cmp dword [ebp - 4], 0
jg 0x441255
mov eax, dword [ebp - 4]
jmp 0x4415af
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xac]
test eax, eax
je 0x441281
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xac]
cmp edx, 0xfffffffa
je 0x441281
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xac]
cmp ecx, 0xfffffffd
jne 0x4412b2
cmp dword [ebp - 4], 0
jle 0x4412ad
mov edx, dword [ebp - 4]
push edx
push 0x56e7b8
mov eax, dword [ebp + 8]
push eax
call fcn.004024aa
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4412ad
mov eax, dword [ebp - 0x10]
jmp 0x4415af
jmp 0x4415aa
mov ecx, dword [ebp - 4]
push ecx
push 0x56e7b8
mov edx, dword [ebp + 8]
add edx, 0x2f8
push edx
call fcn.00401758
add esp, 0xc
test eax, eax
jne 0x4412ef
push str.dbuf_put_fail
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402054
add esp, 0x10
jmp 0x4415af
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x441413
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xac]
cmp edx, 1
jne 0x441413
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x338]
cmp dword [ecx + 0x20], 0
je 0x44132f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x338]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
jmp 0x441336
mov dword [ebp - 0x18], 0x1f40
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2f8]
cmp eax, dword [ebp - 0x18]
jbe 0x441413
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x338]
cmp dword [edx + 0x20], 0
je 0x441368
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x338]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x44136f
mov dword [ebp - 0x1c], 0x1f40
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x441386
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
add edx, 0x23
mov dword [ebp - 0x20], edx
jmp 0x44138d
mov dword [ebp - 0x20], 0x4c8e88
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x4413a4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
add edx, 0x18
mov dword [ebp - 0x24], edx
jmp 0x4413ab
mov dword [ebp - 0x24], 0x4c8e8c
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x29]
test ecx, ecx
je 0x4413c1
mov edx, dword [ebp + 8]
add edx, 0x29
mov dword [ebp - 0x28], edx
jmp 0x4413c8
mov dword [ebp - 0x28], 0x4c8e90
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2f8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x4c8e94
mov eax, dword [0x5764a8]
push eax
call fcn.0040223e
add esp, 0x1c
push str.Excess_Flood
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402054
add esp, 0x10
jmp 0x4415af
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2f8], 0
je 0x4415aa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0x4000
test eax, eax
jne 0x4415aa
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xac]
cmp edx, 0xffffffff
jl 0x44145a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
sub ecx, dword [ebp - 0xc]
cmp ecx, 0xa
jge 0x4415aa
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xac]
test eax, eax
jne 0x4414bd
push 0x2000
push 0x56e7b8
mov ecx, dword [ebp + 8]
add ecx, 0x2f8
push ecx
call fcn.004011c2
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x441492
jmp 0x4415aa
mov edx, dword [ebp - 8]
push edx
push 0x56e7b8
mov eax, dword [ebp + 8]
push eax
call fcn.004024aa
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4414b8
mov eax, dword [ebp - 0x10]
jmp 0x4415af
jmp 0x4415aa
push 0x2000
push 0x56e7b8
mov ecx, dword [ebp + 8]
add ecx, 0x2f8
push ecx
call fcn.00401f19
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x44157e
cmp dword [ebp - 8], 0
jge 0x44150a
push str.dbuf_getmsg_fail
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402054
add esp, 0x10
jmp 0x4415af
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2f8], 0x1fe
jae 0x44152d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
or ecx, 0x4000
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
jmp 0x44157e
push 0x1ff
push 0x56e7b8
mov eax, dword [ebp + 8]
add eax, 0x2f8
push eax
call fcn.004011c2
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x441579
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2f8], 0
je 0x441579
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2f8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2f8
push ecx
call fcn.00401ed3
add esp, 8
jmp 0x4414dc
cmp dword [ebp - 8], 0
jle 0x4415a5
mov edx, dword [ebp - 8]
push edx
push 0x56e7b8
mov eax, dword [ebp + 8]
push eax
call fcn.004024aa
add esp, 0xc
cmp eax, 0xfffffffe
jne 0x4415a5
mov eax, 0xfffffffe
jmp 0x4415af
jmp 0x441413
mov eax, 1
mov esp, ebp
pop ebp
ret