Function at 0x478070
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x478477
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x478494
call fcn.00407344
cmp dword [ebp - 0xc], 0
jne 0x4780dd
lea eax, [ebp - 0x40]
mov edx, 0x4784cc
call fcn.00407344
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x47811a
lea eax, [ebp - 0x40]
mov edx, 0x4784e0
call fcn.00407344
mov eax, dword [ebp - 0xc]
call fcn.00407810
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
call fcn.0040741c
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x28]
push 0x4784f8
push 0x478558
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00407c98
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x88]
mov edx, 0x3c
call fcn.0042f000
mov dword [ebp - 0x80], 0x20
mov dword [ebp - 0x74], pe_nt_image_headers32
mov dword [ebp - 0x58], 0x800
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x34], 0x50
lea eax, [ebp - 0x88]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407a40
push eax
call sub.wininet.dll_InternetCrackUrlW
test eax, eax
je 0x4781ba
mov byte [ebp - 0xd], 1
movzx eax, word [ebp - 0x70]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x78]
call fcn.00407a90
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, 1
mov eax, dword [ebp - 0x38]
call fcn.00407d80
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x5c]
call fcn.00407a90
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x58]
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00407d80
push 0
push 0
push 0
push 0
push 0x478580
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xea60
push 4
lea eax, [ebp - 0x2c]
push eax
push 2
mov eax, dword [ebp - 0x30]
push eax
call sub.wininet.dll_InternetSetOptionW
mov dword [ebp - 0x2c], 0xea60
push 4
lea eax, [ebp - 0x2c]
push eax
push 6
mov eax, dword [ebp - 0x30]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47823c
push ebp
mov edx, 0x478598
xor eax, eax
call fcn.00478030
pop ecx
jmp 0x478442
mov dword [ebp - 0x44], 0x84000100
lea eax, [ebp - 0x8c]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00407d80
mov eax, dword [ebp - 0x8c]
mov edx, dword [0x48a3c0]
call fcn.00407d48
jne 0x478276
or dword [ebp - 0x44], 0x800000
xor eax, eax
push ebp
push 0x47843b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x40]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4782cc
push ebp
mov edx, 0x4785c4
xor eax, eax
call fcn.00478030
pop ecx
call fcn.00406744
jmp 0x478442
xor eax, eax
push ebp
push 0x47841b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00407410
push eax
mov eax, dword [ebp - 0x28]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
je 0x478402
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
jne 0x47834c
push ebp
mov edx, 0x4785f0
xor eax, eax
call fcn.00478030
pop ecx
call fcn.00406744
call fcn.00406744
jmp 0x478442
cmp dword [ebp - 0x24], 0xc8
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
jne 0x4783f6
lea eax, [ebp - 0x28]
mov edx, 0x800
call fcn.00407b38
mov eax, dword [ebp - 0x28]
call fcn.00407410
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
call fcn.004074d8
push eax
push 0x16
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
test eax, eax
je 0x4783f6
mov eax, dword [ebp - 0x28]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00407a90
push 0x47861c
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x94]
call fcn.00417728
push dword [ebp - 0x94]
push 0x478648
push dword [ebp - 0x28]
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00407c98
mov edx, dword [ebp - 0x90]
mov eax, dword [0x48a484]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00441d00
push ebp
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.00478030
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478422
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47847e
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.00406fb8
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00406fb8
lea eax, [ebp - 0x28]
call fcn.00406f58
pop eax
jmp eax