Function at 0x413818
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, 0xfffffba4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov ebx, eax
lea eax, [ebp - 0x450]
mov edx, dword [0x40baf4]
call fcn.0040361c
xor eax, eax
push ebp
push 0x413d32
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2c], 1
lea eax, [ebp - 0x450]
call fcn.0040c42c
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x50]
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x450]
mov ecx, dword [ebx + 0x40]
lea edx, [ebx + 0x88]
call fcn.0040bc98
cmp dword [ebp - 0x20], 0
je 0x4138d9
mov dword [ebp - 0x434], 3
mov eax, dword [ebp - 0x20]
call fcn.004033c4
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x42c], eax
push 0xc
lea eax, [ebp - 0x434]
push eax
push 0x26
push esi
call sub.wininet.dll_InternetSetOptionA
mov byte [ebx + 8], 0
test esi, esi
je 0x413cc6
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x34]
lea edx, [ebx + 0x64]
call fcn.0040bc98
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0x70]
call fcn.0040bda8
mov dword [ebp - 4], eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x4c]
lea edx, [ebx + 0x7c]
call fcn.0040bda8
mov edi, eax
cmp dword [ebp - 4], 0
jbe 0x413960
push 0x413d4c
lea edx, [ebp - 0x454]
mov eax, dword [ebp - 4]
call fcn.00406818
push dword [ebp - 0x454]
push 0x413d64
lea edx, [ebp - 0x458]
mov eax, dword [ebp - 4]
add eax, edi
call fcn.00406818
push dword [ebp - 0x458]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004032c0
jmp 0x413968
lea eax, [ebp - 0x10]
call fcn.00403094
cmp dword [ebx + 0x54], 1
jne 0x413aad
mov edx, dword [ebp - 8]
mov eax, 0x413d70
call fcn.004034e8
test eax, eax
jle 0x413993
mov dword [ebp - 0x14], 0x1bb
mov dword [ebp - 0x18], 0x800000
jmp 0x41399f
mov dword [ebp - 0x14], 0x50
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, 0x413d80
call fcn.004034e8
mov edi, eax
cmp edi, 0xffffffff
je 0x4139c3
lea ecx, [edi + 1]
lea eax, [ebp - 8]
mov edx, 1
call fcn.00403444
mov edx, dword [ebp - 8]
mov eax, 0x413d8c
call fcn.004034e8
mov edi, eax
cmp edi, 0xffffffff
jne 0x4139ec
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.0040312c
lea eax, [ebp - 0x24]
call fcn.00403094
jmp 0x413a19
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00403404
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
call fcn.00403200
mov ecx, eax
lea edx, [edi + 1]
mov eax, dword [ebp - 8]
call fcn.00403404
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004033c4
push eax
push esi
call sub.wininet.dll_InternetConnectA
mov edi, eax
push 0
mov eax, dword [ebp - 0x18]
or eax, 0x400000
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.004033c4
push eax
push 0x413d90
push edi
call sub.wininet.dll_HttpOpenRequestA
mov edi, eax
lea eax, [ebp - 0x20]
mov edx, 0x413da0
call fcn.0040312c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0xc]
xor ecx, ecx
lea edx, [ebx + 0xac]
call fcn.0040bc98
mov eax, dword [ebp - 0x24]
call fcn.00403200
push eax
mov eax, dword [ebp - 0x24]
call fcn.004033c4
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403200
push eax
mov eax, dword [ebp - 0x20]
call fcn.004033c4
push eax
push edi
call sub.wininet.dll_HttpSendRequestA
jmp 0x413ad0
push 0
push 0x80040000
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
call fcn.004033c4
push eax
mov eax, dword [ebp - 8]
call fcn.004033c4
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
test edi, edi
je 0x413cc0
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push edi
call sub.wininet.dll_HttpQueryInfoA
cmp dword [ebp - 0x14], 0x197
jne 0x413bcc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x450]
mov ecx, dword [ebx + 0x44]
lea edx, [ebx + 0x94]
call fcn.0040bc98
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x450]
mov ecx, dword [ebx + 0x48]
lea edx, [ebx + 0xa0]
call fcn.0040bc98
cmp dword [ebp - 0x20], 0
je 0x413bcc
cmp dword [ebp - 0x24], 0
je 0x413bcc
lea eax, [ebp - 4]
push eax
push 0x401
lea eax, [ebp - 0x425]
push eax
push edi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 4], 0
jne 0x413b4c
push 0
push 0
push 0xffffffffffffffff
push 0x413dd8
push dword [ebp - 0x20]
push 0x413dfc
push dword [ebp - 0x24]
lea eax, [ebp - 0x45c]
mov edx, 3
call fcn.004032c0
mov eax, dword [ebp - 0x45c]
lea edx, [ebp - 0x458]
call fcn.004133ec
push dword [ebp - 0x458]
push 0x413e08
lea eax, [ebp - 0x454]
mov edx, 3
call fcn.004032c0
mov eax, dword [ebp - 0x454]
call fcn.004033c4
push eax
push edi
call sub.wininet.dll_HttpSendRequestA
lea eax, [ebp - 0x425]
xor ecx, ecx
mov edx, 0x401
call fcn.00402640
xor eax, eax
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0xc]
mov ecx, dword [ebx + 0x38]
lea edx, [ebx + 0x58]
call fcn.0040bc98
cmp dword [ebp - 0xc], 0
jne 0x413c05
call fcn.004072f8
mov dword [ebx + 0x30], eax
jmp 0x413c10
mov eax, dword [ebp - 0xc]
call fcn.004072cc
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x425]
xor ecx, ecx
mov edx, 0x401
call fcn.00402640
lea eax, [ebp - 4]
push eax
push 0x401
lea eax, [ebp - 0x425]
push eax
push edi
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x425]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 4]
call fcn.004070fc
mov eax, dword [ebp - 4]
add dword [ebx + 0x28], eax
cmp byte [ebx + 0x3c], 0
je 0x413c5e
mov eax, ebx
call fcn.00413e0c
jmp 0x413c6c
push ebx
push fcn.00413e0c
mov eax, dword [ebx + 4]
call fcn.00407050
cmp dword [ebp - 4], 0
je 0x413c78
cmp byte [ebx + 8], 0
je 0x413c10
push edi
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0xc], 0
jne 0x413c96
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.004070e4
jmp 0x413ca3
mov eax, dword [ebx + 0x30]
call fcn.004055e8
xor eax, eax
mov dword [ebx + 0x30], eax
cmp byte [ebx + 0x3c], 0
je 0x413cb2
mov eax, ebx
call fcn.00413e28
jmp 0x413cc0
push ebx
push fcn.00413e28
mov eax, dword [ebx + 4]
call fcn.00407050
push esi
call sub.wininet.dll_InternetCloseHandle
xor esi, esi
mov byte [ebx + 0x2c], 0
cmp byte [ebx + 0x3c], 0
je 0x413cdb
mov eax, ebx
call fcn.00413e1c
jmp 0x413ce9
push ebx
push fcn.00413e1c
mov eax, dword [ebx + 4]
call fcn.00407050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d39
lea eax, [ebp - 0x45c]
mov edx, 3
call fcn.004030b8
lea eax, [ebp - 0x450]
mov edx, dword [0x40baf4]
call fcn.004036e8
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004030b8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004030b8
ret