Function at 0x40fb50
Capabilities:
Connect to http server
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449378
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x45e4b8]
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 esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x48]
push 0x38
push ebx
mov dword [ebp - 0x58], ebx
push eax
mov dword [ebp - 0x4c], 0x3c
call fcn.0042ea00
lea eax, [esi + 8]
mov dword [ebp - 0x38], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
jb 0x40fbc2
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40fc08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x68]
mov edi, eax
push edi
push str.InternetCrackUrlW_failed:__u.
push str.HttpTask::Connect
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x40fc01
movzx edi, di
or edi, 0x80070000
mov eax, edi
jmp 0x40fe54
mov eax, dword [ebp - 0x40]
sub eax, 3
je 0x40fc26
dec eax
je 0x40fc1d
mov eax, 0x80072ee5
jmp 0x40fe54
mov dword [ebp - 0x54], 0x84c00200
jmp 0x40fc2d
mov dword [ebp - 0x54], 0x84400200
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40fc38
xor edi, edi
jmp 0x40fc7a
push dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], cx
lea ecx, [ebp - 0x88]
push eax
mov dword [ebp - 0x78], ebx
call fcn.00402490
mov dword [ebp - 4], 0
lea edi, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov ebx, 1
mov dword [ebp - 0x58], ebx
cmovae edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40fc86
mov dword [ebp - 0x50], eax
jmp 0x40fcd6
push dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
lea ecx, [ebp - 0xa0]
push eax
mov dword [ebp - 0x90], 0
call fcn.00402490
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa0]
or ebx, 2
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x58], ebx
cmovae eax, dword [ebp - 0xa0]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x5c], 7
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00402490
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0
push 3
push edi
push dword [ebp - 0x50]
push dword [ebp - 0x34]
push eax
push dword [esi + 0x4c]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp dword [ebp - 0x5c], 8
mov dword [esi + 0x50], eax
jb 0x40fd2e
push dword [ebp - 0x70]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
test bl, 2
je 0x40fd7e
and ebx, 0xfffffffd
cmp dword [ebp - 0x8c], 8
jb 0x40fd61
push dword [ebp - 0xa0]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40fdb5
cmp dword [ebp - 0x74], 8
jb 0x40fd9e
push dword [ebp - 0x88]
call fcn.00429834
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x40fdf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x68]
mov edi, eax
push edi
push str.InternetConnectW_failed:__u.
push str.HttpTask::Connect
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x40fc01
movzx edi, di
or edi, 0x80070000
mov eax, edi
jmp 0x40fe54
push esi
push dword [ebp - 0x54]
push 0
push 0
push 0
push dword [ebp - 0x20]
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x40fe46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 0x68]
push edi
push str.HttpOpenRequestW_failed:__u.
push str.HttpTask::Connect
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0x10
test edi, edi
jle 0x40fe39
movzx edi, di
or edi, 0x80070000
push dword [esi + 0x50]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
jmp 0x40fe54
push 0x410390
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackA]
xor eax, eax
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.00428e73
mov esp, ebp
pop ebp
ret