Function at 0x40d8e0
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 [0x409a14]
call fcn.0040357c
xor eax, eax
push ebp
push 0x40de15
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2c], 1
lea eax, [ebp - 0x850]
call fcn.0040a268
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 0x40dda9
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x40]
lea edx, [ebx + 0x88]
call fcn.00409be8
cmp dword [ebp - 0x24], 0
je 0x40d9b2
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.00409be8
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0x70]
call fcn.00409cf8
mov dword [ebp - 8], eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x4c]
lea edx, [ebx + 0x7c]
call fcn.00409cf8
mov esi, eax
cmp dword [ebp - 8], 0
jbe 0x40da2d
push 0x40de30
lea edx, [ebp - 0x854]
mov eax, dword [ebp - 8]
call fcn.00405e84
push dword [ebp - 0x854]
push 0x40de48
lea edx, [ebp - 0x858]
mov eax, dword [ebp - 8]
add eax, esi
call fcn.00405e84
push dword [ebp - 0x858]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403220
jmp 0x40da35
lea eax, [ebp - 0x14]
call fcn.00402ff4
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x54], 1
jne 0x40db83
mov edx, dword [ebp - 0xc]
mov eax, 0x40de54
call fcn.00403448
test eax, eax
jle 0x40da65
mov dword [ebp - 0x18], 0x1bb
mov dword [ebp - 0x1c], 0x800000
jmp 0x40da71
mov dword [ebp - 0x18], 0x50
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, 0x40de64
call fcn.00403448
mov esi, eax
cmp esi, 0xffffffff
je 0x40da95
lea ecx, [esi + 1]
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.004033a4
mov edx, dword [ebp - 0xc]
mov eax, 0x40de70
call fcn.00403448
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dabe
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040308c
lea eax, [ebp - 0x28]
call fcn.00402ff4
jmp 0x40daeb
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 0x40de74
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
lea eax, [ebp - 0x24]
mov edx, 0x40de84
call fcn.0040308c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0xac]
call fcn.00409be8
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 0x40dba6
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 0x40dd8a
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 0x40dca2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x44]
lea edx, [ebx + 0x94]
call fcn.00409be8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x850]
mov ecx, dword [ebx + 0x48]
lea edx, [ebx + 0xa0]
call fcn.00409be8
cmp dword [ebp - 0x24], 0
je 0x40dca2
cmp dword [ebp - 0x28], 0
je 0x40dca2
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 0x40dc22
push 0
push 0
push 0xffffffffffffffff
push 0x40debc
push dword [ebp - 0x24]
push 0x40dee0
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.0040d658
push dword [ebp - 0x858]
push 0x40deec
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.00409be8
cmp dword [ebp - 0x10], 0
jne 0x40dcdb
call fcn.00406558
mov dword [ebx + 0x30], eax
jmp 0x40dce6
mov eax, dword [ebp - 0x10]
call fcn.0040652c
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.0040638c
mov eax, dword [ebp - 8]
add dword [ebx + 0x28], eax
cmp byte [ebx + 0x3c], 0
je 0x40dd34
mov eax, ebx
call fcn.0040def0
jmp 0x40dd42
push ebx
push fcn.0040def0
mov eax, dword [ebx + 4]
call fcn.004062e0
cmp dword [ebp - 8], 0
je 0x40dd4e
cmp byte [ebx + 8], 0
je 0x40dce6
cmp dword [ebp - 0x10], 0
jne 0x40dd60
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.00406374
jmp 0x40dd6d
mov eax, dword [ebx + 0x30]
call fcn.004050b4
xor eax, eax
mov dword [ebx + 0x30], eax
cmp byte [ebx + 0x3c], 0
je 0x40dd7c
mov eax, ebx
call fcn.0040df0c
jmp 0x40dd8a
push ebx
push fcn.0040df0c
mov eax, dword [ebx + 4]
call fcn.004062e0
test esi, esi
je 0x40dd94
push esi
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 4], 0
je 0x40dda3
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 0x40ddbe
mov eax, ebx
call fcn.0040df00
jmp 0x40ddcc
push ebx
push fcn.0040df00
mov eax, dword [ebx + 4]
call fcn.004062e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de1c
lea eax, [ebp - 0x85c]
mov edx, 3
call fcn.00403018
lea eax, [ebp - 0x850]
mov edx, dword [0x409a14]
call fcn.00403648
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403018
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403018
ret