Function at 0x480668
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x104c], ebx
mov dword [ebp - 0x1048], ebx
mov dword [ebp - 0x1044], ebx
mov dword [ebp - 0x1040], ebx
mov dword [ebp - 0x103c], ebx
mov dword [ebp - 0x1038], ebx
mov dword [ebp - 0x1034], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x480b3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1034]
mov ecx, edi
mov edx, ebx
call fcn.00404488
mov eax, dword [ebp - 0x1034]
call fcn.0047ec3c
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x480b16
xor eax, eax
push ebp
push 0x480b0f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x480711
mov esi, 0x1bb
jmp 0x480716
mov esi, 0x50
push 0
push 0
push 3
push 0
push 0
push esi
mov eax, ebx
call fcn.0040463c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x480af8
xor eax, eax
push ebp
push 0x480af1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x480762
lea eax, [ebp - 0x10]
mov edx, 0x480b58
call fcn.004041f8
jmp 0x48076f
lea eax, [ebp - 0x10]
mov edx, 0x480b64
call fcn.004041f8
cmp byte [ebp + 8], 0
je 0x48077c
mov esi, 0xc00000
jmp 0x480781
mov esi, 3
push 0
push esi
push 0
push 0
push 0
mov eax, edi
call fcn.0040463c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040463c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1f
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetQueryOptionA
mov eax, dword [ebp - 0x24]
or eax, 0x100
or eax, 0x1000
or eax, 0x2000
or eax, 0x80
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1f
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebp - 0x20], 0
je 0x480ada
xor eax, eax
push ebp
push 0x480ad3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4179fc]
call fcn.0041c6f0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x480ab5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x480b74
push ebx
push 0x480b84
lea eax, [ebp - 0x1038]
mov edx, 3
call fcn.004044fc
mov edx, dword [ebp - 0x1038]
mov eax, dword [ebp - 0xc]
call fcn.0041c804
push 0x480b90
push dword [ebp + 0x1c]
push 0x480b84
lea eax, [ebp - 0x103c]
mov edx, 3
call fcn.004044fc
mov edx, dword [ebp - 0x103c]
mov eax, dword [ebp - 0xc]
call fcn.0041c804
mov edx, 0x480ba8
mov eax, dword [ebp - 0xc]
call fcn.0041c804
mov edx, 0x480bfc
mov eax, dword [ebp - 0xc]
call fcn.0041c804
mov edx, 0x480c28
mov eax, dword [ebp - 0xc]
call fcn.0041c804
mov edx, 0x480c64
mov eax, dword [ebp - 0xc]
call fcn.0041c804
mov edx, 0x480c80
mov eax, dword [ebp - 0xc]
call fcn.0041c804
push 0x20000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.0040443c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.0040463c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 4]
call fcn.0040443c
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x480a62
lea eax, [ebp - 0x1030]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402da4
mov dword [ebp - 0x2c], 0x1000
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1030]
push eax
push 0x16
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x48095e
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea edx, [ebp - 0x1040]
mov eax, ebx
call fcn.0040890c
mov ecx, dword [ebp - 0x1040]
mov eax, dword [ebp + 0xc]
mov edx, 0x480ca4
call fcn.00404488
jmp 0x480971
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x1030]
mov ecx, 0x1000
call fcn.004043d0
lea eax, [ebp - 0x1030]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402da4
mov dword [ebp - 0x2c], 0x1000
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1030]
push eax
push 0x80000023
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
jne 0x4809d9
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea edx, [ebp - 0x1044]
mov eax, ebx
call fcn.0040890c
mov ecx, dword [ebp - 0x1044]
mov eax, dword [ebp + 0xc]
mov edx, 0x480cb8
call fcn.00404488
jmp 0x4809ec
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x1030]
mov ecx, 0x1000
call fcn.004043d0
lea eax, [ebp - 0x1030]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402da4
jmp 0x480a3f
cmp dword [ebp - 0x14], 0
je 0x480a5c
lea eax, [ebp - 0x1048]
lea edx, [ebp - 0x1030]
mov ecx, 0x1000
call fcn.004043d0
mov edx, dword [ebp - 0x1048]
mov eax, dword [ebp + 0x10]
call fcn.00404444
mov eax, dword [ebp + 0x10]
lea eax, [ebp - 0x1030]
xor ecx, ecx
mov edx, 0x1000
call fcn.00402da4
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x480a00
mov byte [ebp - 5], 1
jmp 0x480a9f
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea edx, [ebp - 0x104c]
mov eax, ebx
call fcn.0040890c
mov ecx, dword [ebp - 0x104c]
mov eax, dword [ebp + 0xc]
mov edx, 0x480ccc
call fcn.00404488
call fcn.00403c48
call fcn.00403c48
call fcn.00403c48
call fcn.00403c48
jmp 0x480b16
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480abc
mov eax, dword [ebp - 0xc]
call fcn.004033d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480af8
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480b16
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480b43
lea eax, [ebp - 0x104c]
mov edx, 7
call fcn.00404184
lea eax, [ebp - 0x10]
call fcn.00404160
ret