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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fff5
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x10], 0
jne 0x4074a6
lea ecx, [ebx + 0x1c]
call fcn.00406660
test eax, eax
jne 0x4074f4
mov byte [ebx + 0x10], 1
mov esi, dword [ebx + 0x18]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
call eax
mov edi, edx
mov dword [ebp - 0x45c], eax
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx]
call edx
cmp edi, edx
jb 0x407566
ja 0x4074d8
cmp dword [ebp - 0x45c], eax
jbe 0x407566
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebx + 0x18]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx]
call edx
sub esi, eax
mov dword [ebx + 0x14], esi
jmp 0x40756d
mov esi, dword [0x605350]
test esi, esi
jne 0x407528
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x45c], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x407520
mov ecx, eax
call fcn.004048d0
mov esi, eax
jmp 0x407522
xor esi, esi
mov dword [0x605350], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect_failed__d__n
push 2
push esi
call fcn.00404c70
add esp, 0x10
mov ecx, ebx
call fcn.00407ab0
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], 0xffffffff
mov dword [ebx + 0x18], 0
jmp 0x407a94
mov dword [ebx + 0x14], 0
mov ecx, dword [ebx + 0x18]
push dword [ebx + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
push edx
push eax
lea ecx, [ebx + 0x1c]
call fcn.00406720
mov edi, eax
test edi, edi
jns 0x4075ea
mov esi, dword [0x605350]
test esi, esi
jne 0x4075c1
push 0x3c
call fcn.00427083
add esp, 4
mov dword [ebp - 0x45c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4075b9
mov ecx, eax
call fcn.004048d0
mov esi, eax
jmp 0x4075bb
xor esi, esi
mov dword [0x605350], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.BeginRecvData_failed__d__n
push 2
push esi
call fcn.00404c70
add esp, 0x10
mov ecx, ebx
call fcn.00407ab0
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], edi
jmp 0x407550
xor eax, eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebx + 0x90]
cmp eax, 0xffffffff
jne 0x407601
or esi, eax
jmp 0x407620
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x4076d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
xor eax, eax
nop word [eax + eax]
cmp edi, 0x274c
je 0x40763c
test esi, esi
jne 0x407680
inc eax
mov dword [ebp - 0x45c], eax
mov eax, dword [ebx + 0x90]
cmp eax, 0xffffffff
jne 0x407652
or esi, eax
jmp 0x40766d
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x4076d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [ebp - 0x45c]
cmp eax, 2
jle 0x407630
mov ecx, ebx
call fcn.00407ab0
cmp edi, 0x2745
jne 0x4076aa
mov eax, dword [ebx + 0x18]
or ecx, 0xffffffff
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], ecx
mov dword [ebx + 0x18], 0
jmp 0x407a94
mov eax, dword [ebx + 0x18]
xor ecx, ecx
cmp edi, 0x274c
setne cl
mov dword [eax + 4], edi
add ecx, 0xfffffffe
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], ecx
mov dword [ebx + 0x18], 0
jmp 0x407a94
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 2
push eax
push esi
lea eax, [ebp - 0x410]
push eax
call fcn.00406940
test al, al
jne 0x40772a
mov ecx, ebx
call fcn.00407ab0
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], 0xffffffff
jmp 0x407a6f
cmp dword [ebx + 0x14], 0
jne 0x4077a8
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push ecx
cmovae eax, dword [ebp - 0x428]
push str.Content_Length:
push eax
call fcn.004069a0
test al, al
je 0x407799
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.005778ea
add esp, 4
mov dword [ebx + 0x14], eax
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 2
call fcn.00401f20
cmp dword [ebp - 0x414], 0x10
lea edx, [ebp - 0x464]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push edx
push ecx
push eax
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x45c], ecx
call fcn.00406b20
mov edi, dword [ebp - 0x464]
cmp edi, 0xc8
je 0x407917
cmp edi, 0xce
je 0x407917
cmp edi, 0x12e
jne 0x4078e5
mov ecx, ebx
call fcn.00407ab0
push 0x5d3500
lea ecx, [ebp - 0x458]
call fcn.00401fe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x458]
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push ecx
cmovae eax, dword [ebp - 0x428]
push str.Location:
push eax
call fcn.004069a0
test al, al
je 0x4078ba
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
mov ecx, ebx
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.00407b30
test al, al
je 0x4078ba
cmp dword [ebx + 0x140], 0x10
lea esi, [ebx + 0x12c]
jb 0x407882
mov eax, dword [esi]
jmp 0x407884
mov eax, esi
push eax
lea ecx, [ebx + 0x1c]
call fcn.004068c0
lea eax, [ebp - 0x458]
cmp esi, eax
je 0x4078a3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402240
mov ecx, ebx
call fcn.00407460
lea ecx, [ebp - 0x458]
call fcn.00401f20
jmp 0x407a76
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x458]
mov dword [eax + 4], 0x12e
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], 0xffffffff
mov dword [ebx + 0x18], 0
call fcn.00401f20
jmp 0x407a76
push edi
push str.HTTP
push 2
call fcn.004049c0
push eax
call fcn.00404c70
add esp, 0x10
mov ecx, ebx
call fcn.00407ab0
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], 0xffffffff
jmp 0x407a6f
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x45c]
sub esi, eax
test esi, esi
jle 0x407948
mov ecx, dword [ebx + 0x18]
lea eax, [ebp + eax - 0x410]
push esi
push eax
push 0
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov ecx, esi
mov dword [ebp - 0x460], ecx
jmp 0x40794a
xor ecx, ecx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x407960
cmp ecx, eax
jb 0x407960
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], edi
jmp 0x407a65
xor esi, esi
mov dword [ebp - 0x45c], esi
mov eax, dword [ebx + 0x90]
cmp eax, 0xffffffff
jne 0x407977
or edi, eax
jmp 0x407990
push 0
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
nop
test edi, edi
jle 0x4079e2
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x410]
push edi
push eax
mov eax, dword [ebp - 0x460]
mov esi, dword [ecx]
cdq
push edx
push eax
call dword [esi + 8]
mov ecx, dword [ebp - 0x460]
mov eax, dword [ebx + 0x14]
add ecx, edi
mov dword [ebp - 0x460], ecx
test eax, eax
je 0x4079ca
cmp ecx, eax
jae 0x407a59
cmp edi, 0x200
jge 0x4079da
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x45c]
jmp 0x407968
je 0x407a52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x274c
jne 0x407a16
inc esi
mov dword [ebp - 0x45c], esi
cmp esi, 3
jg 0x407a0b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
setg al
test al, al
je 0x407968
mov ecx, ebx
call fcn.00407ab0
cmp edi, 0x2745
jne 0x407a36
mov eax, dword [ebx + 0x18]
or ecx, 0xffffffff
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], ecx
jmp 0x407a6f
mov eax, dword [ebx + 0x18]
xor ecx, ecx
cmp edi, 0x274c
setne cl
mov dword [eax + 4], edi
add ecx, 0xfffffffe
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], ecx
jmp 0x407a6f
mov ecx, ebx
call fcn.00407ab0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x464]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x18]
mov dword [eax + 8], 2
mov dword [ebx + 0x18], 0
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x407a94
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.004023e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret