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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461021
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x10], 0
jne 0x414639
lea eax, [edi + 0x1c]
push eax
call fcn.00413300
test eax, eax
jne 0x41467b
mov byte [edi + 0x10], 1
mov esi, dword [edi + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, edx
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov ecx, esi
call eax
cmp ebx, edx
jb 0x4146c2
ja 0x41465f
cmp dword [esp + 0x1c], eax
jbe 0x4146c2
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx]
call eax
sub esi, eax
mov dword [edi + 0x14], esi
jmp 0x4146c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect_failed__d__n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
lea esi, [edi + 0x98]
call fcn.00413030
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
mov byte [edi + 0x10], 0
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 8], eax
mov dword [edi + 0x18], 0
jmp 0x414b72
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
mov eax, dword [ecx]
push edx
mov edx, dword [eax]
call edx
push edx
push eax
lea ecx, [edi + 0x1c]
call fcn.00413400
mov ebx, eax
test ebx, ebx
jge 0x41472e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.BeginRecvData_failed__d__n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
lea esi, [edi + 0x98]
call fcn.00413030
mov eax, dword [edi + 0x18]
mov byte [edi + 0x10], 0
mov dword [eax + 4], ebx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
mov dword [edi + 0x18], 0
jmp 0x414b72
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
mov dword [esp + 0x14], 0
jne 0x414745
or eax, eax
jmp 0x414758
push 0
push 0x400
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
cmp eax, ebx
mov esi, eax
jg 0x414800
mov dword [esp + 0x10], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x274c
je 0x41477c
test esi, esi
jne 0x4147ba
mov eax, dword [edi + 0xa0]
add dword [esp + 0x10], 1
cmp eax, 0xffffffff
jne 0x414790
or eax, eax
jmp 0x4147a3
push 0
push 0x400
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov esi, eax
jg 0x4147fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x10], 2
mov ebx, eax
jle 0x414770
test esi, esi
jg 0x4147fe
lea esi, [edi + 0x98]
call fcn.00413030
cmp ebx, 0x2745
mov byte [edi + 0x10], 0
jne 0x4147d8
or eax, 0xffffffff
jmp 0x4147e6
xor eax, eax
cmp ebx, 0x274c
setne al
add eax, 0xfffffffe
mov edx, dword [edi + 0x18]
mov dword [edx + 4], ebx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], eax
mov dword [edi + 0x18], 0
jmp 0x414b72
xor ebx, ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
lea edx, [esp + 0x24]
push edx
mov edx, esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x474], ebx
call fcn.00413550
test al, al
jne 0x41486a
lea esi, [edi + 0x98]
call fcn.00413030
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
mov byte [edi + 0x10], 0
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 8], eax
cmp dword [esp + 0x3c], 0x10
mov dword [edi + 0x18], ebx
jb 0x414b72
mov eax, dword [esp + 0x28]
push eax
call fcn.0042a2ef
add esp, 4
jmp 0x414b72
cmp dword [edi + 0x14], ebx
jne 0x4148d6
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], 0
mov byte [esp + 0x470], 1
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x414897
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, str.Content_Length:
call fcn.004135b0
test al, al
je 0x4148c5
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x4148b9
lea eax, [esp + 0x44]
push eax
call fcn.00446d31
add esp, 4
mov dword [edi + 0x14], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x470], 0
call fcn.00401b20
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x38]
jae 0x4148ed
lea ecx, [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00413730
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x414a27
cmp eax, 0xce
je 0x414a27
mov esi, 0x12e
cmp eax, esi
jne 0x4149f2
call fcn.00414ba0
push 0x46902c
lea ecx, [esp + 0x44]
call fcn.00401ae0
mov byte [esp + 0x470], 2
mov ecx, dword [esp + 0x28]
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jae 0x41494d
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, str.Location:
call fcn.004135b0
test al, al
je 0x414978
cmp dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x44]
jae 0x41496e
lea ecx, [esp + 0x44]
push edi
call fcn.00414bc0
test al, al
jne 0x41499d
mov eax, dword [edi + 0x18]
mov dword [eax + 4], esi
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
lea ecx, [esp + 0x40]
mov dword [edi + 0x18], 0
call fcn.00401b20
jmp 0x414b69
cmp dword [edi + 0x160], ebx
lea esi, [edi + 0x148]
jb 0x4149b0
mov edx, dword [esi + 4]
jmp 0x4149b3
lea edx, [esi + 4]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4149b8
sub eax, ebx
push eax
push edx
lea ecx, [edi + 0x7c]
call fcn.00401d40
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.00401bb0
mov ecx, edi
call fcn.004145e0
lea ecx, [esp + 0x40]
call fcn.00401b20
jmp 0x414b69
push eax
push str.HTTP
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
call fcn.00414ba0
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 0xffffffff
jmp 0x414b62
mov edx, dword [edi + 0x18]
sub esi, ebx
test esi, esi
mov dword [edx + 4], eax
jle 0x414a53
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push esi
lea edx, [esp + ebx + 0x60]
push edx
push 0
push 0
call eax
mov eax, dword [esp + 0x10]
mov ebx, esi
mov dword [esp + 0x14], ebx
jmp 0x414a57
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 0x14]
xor edx, edx
cmp ecx, edx
jbe 0x414a7c
cmp ebx, ecx
jb 0x414a7c
mov ecx, dword [edi + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], 2
mov dword [edi + 0x18], edx
jmp 0x414b69
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
mov dword [esp + 0x18], edx
jne 0x414a8f
or eax, eax
jmp 0x414aa1
push edx
push 0x400
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x414adb
mov ecx, dword [edi + 0x18]
push esi
lea edx, [esp + 0x60]
push edx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x14]
add ebx, esi
test eax, eax
mov dword [esp + 0x14], ebx
jbe 0x414ad1
cmp ebx, eax
jae 0x414b20
cmp esi, 0x200
jge 0x414b05
jmp 0x414afd
je 0x414b1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x274c
jne 0x414b36
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 3
mov dword [esp + 0x18], eax
jg 0x414b36
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0xa0]
cmp eax, 0xffffffff
jne 0x414b14
or eax, eax
jmp 0x414aa1
push 0
jmp 0x414a90
call fcn.00414ba0
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], 2
jmp 0x414b62
call fcn.00414ba0
cmp esi, 0x2745
jne 0x414b48
or eax, 0xffffffff
jmp 0x414b56
xor eax, eax
cmp esi, 0x274c
setne al
add eax, 0xfffffffe
mov edx, dword [edi + 0x18]
mov dword [edx + 4], esi
mov ecx, dword [edi + 0x18]
mov dword [ecx + 8], eax
mov dword [edi + 0x18], 0
lea ecx, [esp + 0x24]
call fcn.00401b20
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00445276
mov esp, ebp
pop ebp
ret