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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fca1
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x452528]
xor eax, esp
mov dword [esp + 0x464], eax
push esi
push edi
mov eax, dword [0x452528]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
lea esi, [ebx + 0xa0]
push esi
mov dword [esp + 0x10], esi
call fcn.00403ce0
test eax, eax
je 0x404eb4
call fcn.00403da0
mov dword [ebx + 4], 5
jmp 0x4051db
mov ecx, esi
call fcn.00403e20
test eax, eax
jl 0x404ea3
mov eax, dword [ebx + 0x124]
cmp eax, 0xffffffff
mov dword [esp + 0x14], 0
je 0x4051b1
push 0
push 0x400
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
xor eax, eax
cmp edi, eax
jle 0x4051b1
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1c], al
lea edx, [esp + 0x18]
push edx
mov edx, edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x484], eax
call fcn.00403f10
test al, al
jne 0x404f3f
mov esi, dword [esp + 0xc]
call fcn.00403da0
lea ecx, [esp + 0x18]
mov dword [ebx + 4], 5
call fcn.004011a0
jmp 0x4051db
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0x480], 1
mov ecx, dword [esp + 0x1c]
mov esi, 0x10
cmp dword [esp + 0x30], esi
jae 0x404f6b
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
mov edx, str.Content_Length:
call fcn.00403f70
test al, al
je 0x404f9b
cmp dword [esp + 0x4c], esi
mov eax, dword [esp + 0x38]
jae 0x404f8c
lea eax, [esp + 0x38]
push eax
call fcn.004287bc
add esp, 4
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
cmp dword [esp + 0x30], 0x10
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
jae 0x404fb6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004040f0
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x40507e
cmp eax, 0xce
je 0x40507e
cmp eax, 0x12e
mov esi, dword [esp + 0xc]
jne 0x40506d
call fcn.00403da0
push 0x446de8
lea ecx, [esp + 0x54]
call fcn.00401160
mov byte [esp + 0x480], 2
mov ecx, dword [esp + 0x1c]
mov esi, 0x10
cmp dword [esp + 0x30], esi
jae 0x405018
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
mov edx, str.Location:
call fcn.00403f70
test al, al
je 0x405043
cmp dword [esp + 0x68], esi
mov ecx, dword [esp + 0x54]
jae 0x405039
lea ecx, [esp + 0x54]
push ebx
call fcn.00405200
test al, al
jne 0x405058
lea ecx, [esp + 0x50]
mov dword [ebx + 4], 5
call fcn.004011a0
jmp 0x40519d
mov ecx, ebx
call fcn.00404a30
lea ecx, [esp + 0x50]
call fcn.004011a0
jmp 0x40519d
call fcn.00403da0
mov dword [ebx + 4], 5
jmp 0x40519d
sub edi, esi
test edi, edi
jle 0x4050ab
lea ecx, [esp + esi + 0x6c]
push ecx
lea esi, [ebx + 0x1a4]
call fcn.004038a0
add dword [ebx + 0x1d0], edi
mov dword [esp + 0x14], edi
adc dword [ebx + 0x1d4], 0
add dword [ebx + 0x1c8], edi
mov eax, dword [ebx + 0x124]
cmp eax, 0xffffffff
jne 0x4050ba
or eax, eax
jmp 0x4050cd
push 0
push 0x400
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
xor esi, esi
cmp byte [ebx], 0
mov edi, eax
jne 0x405194
test edi, edi
jle 0x405124
lea eax, [esp + 0x6c]
push eax
lea esi, [ebx + 0x1a4]
mov dword [esp + 0x14], 0
call fcn.004038a0
add dword [ebx + 0x1d0], edi
mov eax, dword [esp + 0x14]
adc dword [ebx + 0x1d4], 0
add dword [ebx + 0x1c8], edi
add eax, edi
mov dword [esp + 0x14], eax
cdq
cmp eax, dword [ebx + 8]
jne 0x40511e
cmp edx, dword [ebx + 0xc]
je 0x40518d
mov esi, dword [esp + 0x10]
jmp 0x40515e
jne 0x405138
add esi, 1
cmp esi, 2
jg 0x40518d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40515e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
jne 0x40514e
mov dword [ebx + 4], 5
jmp 0x40515e
xor ecx, ecx
cmp eax, 0x274c
setne cl
add ecx, 4
mov dword [ebx + 4], ecx
mov eax, dword [ebx + 0x124]
cmp eax, 0xffffffff
jne 0x40516d
or eax, eax
jmp 0x405180
push 0
push 0x400
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [ebx], 0
mov edi, eax
je 0x4050da
jmp 0x405194
mov dword [ebx + 4], 3
mov esi, dword [esp + 0xc]
call fcn.00403da0
lea ecx, [esp + 0x34]
call fcn.004011a0
lea ecx, [esp + 0x18]
call fcn.004011a0
jmp 0x4051db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call fcn.00403da0
cmp edi, 0x2745
je 0x404ea8
xor eax, eax
cmp edi, 0x274c
setne al
add eax, 4
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00426fe7
mov esp, ebp
pop ebp
ret