Function at 0x40b384
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.00470a40
push 0xffffffffffffffff
push 0x47db23
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49e0b0]
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 0x40b3dd
mov eax, dword [eax + 4]
jmp 0x40b3e0
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 0x40b5f1
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], 0xf
call fcn.00404b61
mov dword [ebp - 4], ebx
jmp 0x40b44d
push eax
lea eax, [ebp + 0x4054]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040b765
push 0xffffffffffffffff
push ebx
lea esi, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.0040b873
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00404863
push str._r_n_r_n
mov eax, esi
push eax
call fcn.0040b789
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b472
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 0x40b40c
push ebx
push 1
jmp 0x40b5e9
mov eax, dword [ebp + 0x4c]
sub eax, edi
mov dword [ebp - 0x14], ebx
cmp eax, 4
jbe 0x40b4c0
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040b7aa
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.0040b74f
pop ecx
pop ecx
push ebx
mov ecx, esi
push 1
test al, al
jne 0x40b4b8
call fcn.00404863
jmp 0x40b46a
mov byte [ebp - 4], bl
call fcn.00404863
add edi, 4
push edi
push ebx
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040b7aa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0040475d
xor edi, edi
push ebx
inc edi
push edi
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00404863
push str.Content_Length:
lea eax, [ebp + 0x38]
push eax
call fcn.0040b789
cmp eax, 0xffffffff
je 0x40b5e7
push 0xffffffffffffffff
add eax, 0xf
push eax
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp]
call fcn.0040b7aa
push 0x487458
mov eax, esi
push eax
mov byte [ebp - 4], 4
call fcn.0040b789
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp + 0x1c]
call fcn.0040b7aa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.0040475d
push ebx
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00404863
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40b560
lea eax, [ebp + 4]
push eax
call fcn.00465843
pop ecx
cmp eax, ebx
je 0x40b5dd
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
je 0x40b5da
cmp eax, ebx
jl 0x40b5dd
jle 0x40b5d5
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x5060]
call fcn.0040b2c6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
jle 0x40b5d5
push eax
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040b765
push dword [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
call fcn.0040b74f
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.00404863
cmp byte [ebp - 0xd], bl
jne 0x40b5d5
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jg 0x40b579
cmp dword [ebp - 0x14], ebx
jne 0x40b5dd
mov dword [ebp - 0x18], edi
push ebx
push edi
lea ecx, [ebp]
call fcn.00404863
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.00404863
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.00464d54
add ebp, 0x5058
leave
ret