Function at 0x474d40
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 8], ecx
push 0x3c
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.004c4160
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp + 8]
call fcn.0040b76d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049fcd7
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ab72
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.0040b76d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049fcd7
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040ab72
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call fcn.00462ba0
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x474fd9
cmp dword [ebp - 0x54], 3
je 0x474e86
cmp dword [ebp - 0x54], 4
jne 0x474fd9
cmp dword [ebp - 0x50], 0
je 0x474fd9
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x474fbf
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
xor edx, edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov word [ecx + eax*2], dx
cmp dword [ebp - 0x44], 0
je 0x474edd
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov word [ecx + eax*2], dx
cmp dword [ebp - 0x3c], 0
je 0x474eef
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov word [ecx + eax*2], dx
mov dword [ebp - 0x14], 0x7530
push 4
lea edx, [ebp - 0x14]
push edx
push 2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 6
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x14]
push eax
push 5
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x44]
push eax
movzx ecx, word [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x474f9d
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov ax, word [ebp - 4]
mov word [edx + ecx*2], ax
mov dword [ebp - 0x18], 0x84400000
cmp dword [ebp - 0x54], 4
jne 0x474f7d
mov ecx, dword [ebp - 0x18]
or ecx, 0x800000
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00474cd0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x474fb3
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 8]
call fcn.00474ff0
xor al, al
jmp 0x474fe3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x474fcb
mov ecx, dword [ebp - 8]
call fcn.00474ff0
xor al, al
jmp 0x474fe3
mov ecx, dword [ebp - 8]
call fcn.00474ff0
mov al, 1
jmp 0x474fe3
mov ecx, dword [ebp - 8]
call fcn.00474ff0
xor al, al
mov esp, ebp
pop ebp
ret 8