Function at 0x40b7b3
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x5058]
mov eax, 0x5058
call fcn.004735a0
push 0xffffffffffffffff
push 0x4809e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a20b0]
xor eax, ebp
mov dword [ebp + 0x5054], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x5064]
mov esi, dword [eax + 0x14]
xor ebx, ebx
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
jb 0x40b80c
mov eax, dword [eax + 4]
jmp 0x40b80f
add eax, 4
push ebx
push esi
push eax
push dword [ebp + 0x5060]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x40ba20
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], 0xf
call fcn.00404bdf
mov dword [ebp - 4], ebx
jmp 0x40b87c
push eax
lea eax, [ebp + 0x4054]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040bb94
push 0xffffffffffffffff
push ebx
lea esi, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.0040bca2
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.0040488d
push str._r_n_r_n
mov eax, esi
push eax
call fcn.0040bbb8
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b8a1
push ebx
push 0x1000
lea eax, [ebp + 0x4054]
push eax
push dword [ebp + 0x5060]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x40b83b
push ebx
push 1
jmp 0x40ba18
mov eax, dword [ebp + 0x4c]
sub eax, edi
mov dword [ebp - 0x14], ebx
cmp eax, 4
jbe 0x40b8ef
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040bbd9
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x14], eax
mov eax, esi
push eax
call fcn.0040bb7e
pop ecx
pop ecx
push ebx
mov ecx, esi
push 1
test al, al
jne 0x40b8e7
call fcn.0040488d
jmp 0x40b899
mov byte [ebp - 4], bl
call fcn.0040488d
add edi, 4
push edi
push ebx
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040bbd9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.00404787
xor edi, edi
push ebx
inc edi
push edi
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040488d
push str.Content_Length:
lea eax, [ebp + 0x38]
push eax
call fcn.0040bbb8
cmp eax, 0xffffffff
je 0x40ba16
push 0xffffffffffffffff
add eax, 0xf
push eax
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp]
call fcn.0040bbd9
push 0x48a490
mov eax, esi
push eax
mov byte [ebp - 4], 4
call fcn.0040bbb8
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp + 0x1c]
call fcn.0040bbd9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.00404787
push ebx
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040488d
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40b98f
lea eax, [ebp + 4]
push eax
call fcn.004683a3
pop ecx
cmp eax, ebx
je 0x40ba0c
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
je 0x40ba09
cmp eax, ebx
jl 0x40ba0c
jle 0x40ba04
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x5060]
call fcn.0040b6f5
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
jle 0x40ba04
push eax
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040bb94
push dword [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
call fcn.0040bb7e
pop ecx
pop ecx
neg al
sbb al, al
push ebx
inc al
push edi
mov ecx, esi
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 4
call fcn.0040488d
cmp byte [ebp - 0xd], bl
jne 0x40ba04
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jg 0x40b9a8
cmp dword [ebp - 0x14], ebx
jne 0x40ba0c
mov dword [ebp - 0x18], edi
push ebx
push edi
lea ecx, [ebp]
call fcn.0040488d
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040488d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5054]
xor ecx, ebp
call fcn.004678b3
add ebp, 0x5058
leave
ret