Function at 0x410478
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7a4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x85c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov ebx, eax
lea eax, [ebp - 0x850]
mov edx, dword [0x40c4fc]
call fcn.0040357c
xor eax, eax
push ebp
push 0x4109ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2c], 1
lea eax, [ebp - 0x850]
call fcn.0040d050
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x50]
call fcn.00403324
push eax
call sub.wininet.dll_InternetOpenA
mov edi, eax
mov byte [ebx + 8], 0
test edi, edi
je 0x410941
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x40]
lea edx, [ebx + 0x88]
call fcn.0040c78c
cmp dword [ebp - 0x24], 0
je 0x41054a
mov dword [ebp - 0x834], 3
mov eax, dword [ebp - 0x24]
call fcn.00403324
mov dword [ebp - 0x830], eax
xor eax, eax
mov dword [ebp - 0x82c], eax
push 0xc
lea eax, [ebp - 0x834]
push eax
push 0x26
push edi
call sub.wininet.dll_InternetSetOptionA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x34]
lea edx, [ebx + 0x64]
call fcn.0040c78c
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0x70]
call fcn.0040c89c
mov dword [ebp - 8], eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x4c]
lea edx, [ebx + 0x7c]
call fcn.0040c89c
mov esi, eax
cmp dword [ebp - 8], 0
jbe 0x4105c5
push 0x4109c8
lea edx, [ebp - 0x854]
mov eax, dword [ebp - 8]
call fcn.004067cc
push dword [ebp - 0x854]
push 0x4109e0
lea edx, [ebp - 0x858]
mov eax, dword [ebp - 8]
add eax, esi
call fcn.004067cc
push dword [ebp - 0x858]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403220
jmp 0x4105cd
lea eax, [ebp - 0x14]
call fcn.00402ff4
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x54], 1
jne 0x41071b
mov edx, dword [ebp - 0xc]
mov eax, 0x4109ec
call fcn.00403448
test eax, eax
jle 0x4105fd
mov dword [ebp - 0x18], 0x1bb
mov dword [ebp - 0x1c], 0x800000
jmp 0x410609
mov dword [ebp - 0x18], 0x50
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4109fc
call fcn.00403448
mov esi, eax
cmp esi, 0xffffffff
je 0x41062d
lea ecx, [esi + 1]
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.004033a4
mov edx, dword [ebp - 0xc]
mov eax, 0x410a08
call fcn.00403448
mov esi, eax
cmp esi, 0xffffffff
jne 0x410656
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040308c
lea eax, [ebp - 0x28]
call fcn.00402ff4
jmp 0x410683
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00403364
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403160
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0xc]
call fcn.00403364
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00403324
push eax
push edi
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 0x1c]
or eax, 0x400000
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.00403324
push eax
push 0x410a0c
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
lea eax, [ebp - 0x24]
mov edx, 0x410a1c
call fcn.0040308c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0xac]
call fcn.0040c78c
mov eax, dword [ebp - 0x28]
call fcn.00403160
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403324
push eax
mov eax, dword [ebp - 0x24]
call fcn.00403160
push eax
mov eax, dword [ebp - 0x24]
call fcn.00403324
push eax
push esi
call sub.wininet.dll_HttpSendRequestA
jmp 0x41073e
push 0
push 0x84040000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
call fcn.00403324
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403324
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
je 0x410922
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 - 0x18]
push eax
push 0x20000013
push esi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x18], 0x197
jne 0x41083a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x44]
lea edx, [ebx + 0x94]
call fcn.0040c78c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x48]
lea edx, [ebx + 0xa0]
call fcn.0040c78c
cmp dword [ebp - 0x24], 0
je 0x41083a
cmp dword [ebp - 0x28], 0
je 0x41083a
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x828]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 8], 0
jne 0x4107ba
push 0
push 0
push 0xffffffffffffffff
push 0x410a54
push dword [ebp - 0x24]
push 0x410a78
push dword [ebp - 0x28]
lea eax, [ebp - 0x85c]
mov edx, 3
call fcn.00403220
mov eax, dword [ebp - 0x85c]
lea edx, [ebp - 0x858]
call fcn.0040ff1c
push dword [ebp - 0x858]
push 0x410a84
lea eax, [ebp - 0x854]
mov edx, 3
call fcn.00403220
mov eax, dword [ebp - 0x854]
call fcn.00403324
push eax
push esi
call sub.wininet.dll_HttpSendRequestA
lea eax, [ebp - 0x828]
xor ecx, ecx
mov edx, 0x800
call fcn.00402604
xor eax, eax
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x38]
lea edx, [ebx + 0x58]
call fcn.0040c78c
cmp dword [ebp - 0x10], 0
jne 0x410873
call fcn.00406f38
mov dword [ebx + 0x30], eax
jmp 0x41087e
mov eax, dword [ebp - 0x10]
call fcn.00406f0c
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x828]
xor ecx, ecx
mov edx, 0x800
call fcn.00402604
lea eax, [ebp - 8]
push eax
push 0x800
lea eax, [ebp - 0x828]
push eax
push esi
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x828]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 8]
call fcn.00406d6c
mov eax, dword [ebp - 8]
add dword [ebx + 0x28], eax
cmp byte [ebx + 0x3c], 0
je 0x4108cc
mov eax, ebx
call fcn.00410a88
jmp 0x4108da
push ebx
push fcn.00410a88
mov eax, dword [ebx + 4]
call fcn.00406cc0
cmp dword [ebp - 8], 0
je 0x4108e6
cmp byte [ebx + 8], 0
je 0x41087e
cmp dword [ebp - 0x10], 0
jne 0x4108f8
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.00406d54
jmp 0x410905
mov eax, dword [ebx + 0x30]
call fcn.00405568
xor eax, eax
mov dword [ebx + 0x30], eax
cmp byte [ebx + 0x3c], 0
je 0x410914
mov eax, ebx
call fcn.00410aa4
jmp 0x410922
push ebx
push fcn.00410aa4
mov eax, dword [ebx + 4]
call fcn.00406cc0
test esi, esi
je 0x41092c
push esi
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 4], 0
je 0x41093b
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
xor esi, esi
mov byte [ebx + 0x2c], 0
cmp byte [ebx + 0x3c], 0
je 0x410956
mov eax, ebx
call fcn.00410a98
jmp 0x410964
push ebx
push fcn.00410a98
mov eax, dword [ebx + 4]
call fcn.00406cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109b4
lea eax, [ebp - 0x85c]
mov edx, 3
call fcn.00403018
lea eax, [ebp - 0x850]
mov edx, dword [0x40c4fc]
call fcn.00403648
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403018
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403018
ret