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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b51f1
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4ee318]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x4ee318]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
xor edi, edi
lea esp, [esp]
push 0
push 1
lea ecx, [esp + 0x74]
push ecx
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4064d2
push esi
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.004058e0
mov eax, dword [esp + 0x1c]
add edi, esi
cmp edi, 1
jl 0x4064a0
jmp 0x4064db
cmp edi, 1
jl 0x4066be
push 4
push str._r_n_r_n
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00404ef0
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.00409660
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0x14], al
jb 0x406526
push dword [esp + 0x24]
call fcn.0047e7c0
mov al, byte [esp + 0x18]
add esp, 4
test al, al
mov eax, dword [esp + 0x1c]
je 0x406497
push 1
push ecx
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], 0x20
push eax
mov ecx, ebx
call fcn.004068c0
test eax, eax
js 0x4066be
cmp dword [ebx + 0x14], 0x10
jb 0x406558
mov ecx, dword [ebx]
jmp 0x40655a
mov ecx, ebx
inc eax
add eax, ecx
push eax
call fcn.0047f273
mov esi, dword [esp + 0x24]
add esp, 4
mov dword [esi], eax
cmp eax, 0x12d
je 0x4065c1
cmp eax, 0x12e
je 0x4065c1
push 0x10
push ecx
push str.Content_Length:
mov ecx, ebx
call fcn.004068c0
test eax, eax
js 0x4065b0
cmp dword [ebx + 0x14], 0x10
jb 0x406595
mov ebx, dword [ebx]
add eax, 0x10
add eax, ebx
push eax
call fcn.0047f273
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
mov al, 1
jmp 0x4066c0
mov ecx, dword [esp + 0x18]
mov al, 1
mov dword [ecx], 0xffffffff
jmp 0x4066c0
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
mov dword [esp + 0x480], 0
lea ecx, [esp + 0x24]
push 8
push str.location
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00404ef0
lea eax, [esp + 0x24]
mov byte [esp + 0x480], 1
push eax
mov edx, ebx
lea ecx, [esp + 0x58]
call fcn.004093c0
add esp, 4
mov byte [esp + 0x480], 0
test al, al
sete al
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0x14], al
jb 0x406649
push dword [esp + 0x24]
call fcn.0047e7c0
mov al, byte [esp + 0x18]
add esp, 4
test al, al
je 0x406651
xor bl, bl
jmp 0x4066a7
lea edx, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.004092b0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
push ebx
mov byte [esp + 0x490], 2
call fcn.00406710
cmp dword [esp + 0x50], 8
mov bl, al
jb 0x406690
push dword [esp + 0x3c]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
cmp dword [esp + 0x68], 0x10
jb 0x4066ba
push dword [esp + 0x54]
call fcn.0047e7c0
add esp, 4
mov al, bl
jmp 0x4066c0
xor al, al
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0047e7a3
mov esp, ebp
pop ebp
ret 0xc