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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x6c], 5
je 0x40b719
xor al, al
jmp 0x40b9ee
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x2c], 0xffffffff
je 0x40b9eb
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0xc], 0
jg 0x40b767
mov dword [ebp - 0xc], 0x19000
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jle 0x40b775
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x40b905
mov ecx, dword [ebp - 0x3c]
call fcn.0040b680
movzx eax, al
test eax, eax
jne 0x40b7c6
jmp 0x40b905
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40b7f9
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x68], 1
mov byte [ebp - 1], 0
jmp 0x40b905
cmp dword [ebp - 0x20], 0
jne 0x40b80e
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x68], 3
jmp 0x40b905
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042b380
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x60]
add ecx, 1
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x60]
xor edx, edx
mov ecx, 0x64
div ecx
test edx, edx
jne 0x40b860
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.0040b4e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
fild qword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
fild qword [ebp - 0x4c]
fmul qword [0x44ada8]
fdivp st(1)
fmul qword [0x44ade8]
fnstcw word [ebp - 0x4e]
movzx eax, word [ebp - 0x4e]
or eax, 0xc00
mov dword [ebp - 0x54], eax
fldcw word [ebp - 0x54]
fistp qword [ebp - 0x5c]
fldcw word [ebp - 0x4e]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jg 0x40b8f4
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x18]
cmp ecx, 0x400
jle 0x40b8e9
mov dword [ebp - 8], 0x400
jmp 0x40b8f2
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x40b900
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x68], 3
jmp 0x40b905
jmp 0x40b7a5
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x44], 0x64
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.0040b240
cmp dword [ebp - 0x14], 0
je 0x40b944
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00428d4f
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0xc], 0
je 0x40b96c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00428d4f
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004306a0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0042b380
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.0040b4e0
cmp dword [ebp - 0x1c], 0
je 0x40b9df
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00428d4f
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0040b240
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret