Function at 0x40879b
Capabilities:
Connect to http server
Create http request
Make an http request with a cookie
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebx
mov edx, 0x1a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4087a1
mov eax, dword [esp + 0x98]
mov dword [0x44c088], eax
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00412000
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 4]
call fcn.00412000
mov edx, dword [esp + 0x80]
lea ecx, [esp + 8]
call fcn.00412000
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0xc]
call fcn.00412000
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x10]
call fcn.00412000
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x14]
call fcn.00412000
push dword [0x44c088]
push dword [0x44c088]
push dword [esp + 8]
call fcn.0041ac70
lea eax, [esp + 4]
push eax
call fcn.00423e50
push str.https:__
push dword [esp + 4]
call fcn.0041a040
and eax, eax
je 0x408849
mov byte [esp + 0x18], 1
push dword [0x44c088]
push dword [0x44c088]
push str.https:__
push dword [esp + 0xc]
call fcn.0041aeb0
lea eax, [esp + 4]
push eax
call fcn.00423e50
push dword [0x44c088]
push dword [0x44c088]
push str.http:__
push dword [esp + 0xc]
call fcn.0041aeb0
lea eax, [esp + 4]
push eax
call fcn.00423e50
push dword [0x44c088]
push dword [0x44c088]
push 0x4431d6
push 1
push dword [esp + 0x10]
call fcn.0041a0a0
lea eax, [esp + 0x20]
push eax
call fcn.00423e50
push dword [0x44c088]
push dword [0x44c088]
push dword [esp + 0x24]
push dword [esp + 0xc]
call fcn.0041aeb0
lea eax, [esp + 0x24]
push eax
call fcn.00423e50
push dword [esp + 0x14]
mov edx, 0x44301e
pop ecx
call fcn.00423f30
je 0x4088f2
xor eax, eax
jmp 0x4088f7
mov eax, 1
and eax, eax
je 0x408905
mov dword [esp + 0x24], 3
jmp 0x40890d
mov dword [esp + 0x24], 1
push dword [esp + 0xc]
mov edx, 0x44301e
pop ecx
call fcn.00423f30
je 0x40892c
mov edx, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
lea ecx, [esp + 0xc]
call fcn.00412008
push 0
push 0x44301e
push dword [esp + 0x1c]
push dword [esp + 0x30]
push dword [esp + 0x1c]
call sub.WININET.DLL_InternetOpenA
mov dword [esp + 0x28], eax
push 4
push dword [esp + 0x94]
push 2
push dword [esp + 0x34]
call sub.WININET.DLL_InternetSetOptionA
cmp byte [esp + 0x18], 0
je 0x40897e
mov dword [esp + 0x2c], 0x1bb
mov dword [esp + 0x30], 0x4883100
jmp 0x40898f
push dword [esp + 0x74]
pop eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x4080100
cmp byte [esp + 0x94], 0
je 0x40899d
xor eax, eax
jmp 0x4089a2
mov eax, 1
and eax, eax
je 0x4089b4
mov ebx, dword [esp + 0x30]
or ebx, 0x200000
mov dword [esp + 0x30], ebx
push dword [esp + 4]
mov edx, 0x44301e
pop ecx
call fcn.00423f30
je 0x4089c9
xor eax, eax
jmp 0x4089ce
mov eax, 1
and eax, eax
je 0x4089e2
mov edx, str.POST
lea ecx, [esp + 0x34]
call fcn.00412008
jmp 0x4089f0
mov edx, 0x4439f0
lea ecx, [esp + 0x34]
call fcn.00412008
push dword [esp + 0x20]
mov edx, 0x44301e
pop ecx
call fcn.00423f30
je 0x408a0f
mov edx, 0x4431d6
lea ecx, [esp + 0x20]
call fcn.00412008
push 0
push 0
push 3
push 0x44301e
push 0x44301e
push dword [esp + 0x40]
push dword [esp + 0x34]
push dword [esp + 0x44]
call sub.WININET.DLL_InternetConnectA
mov dword [esp + 0x38], eax
push 0
push dword [esp + 0x34]
push 0
push dword [esp + 0x1c]
push 0x44301e
push dword [esp + 0x34]
push dword [esp + 0x4c]
push dword [esp + 0x54]
call sub.WININET.DLL_HttpOpenRequestA
mov dword [esp + 0x3c], eax
mov edx, str.Visionis_Api_Key:_MwRZLmbHZzuC93dWBteR_r_n
lea ecx, [esp + 0x40]
call fcn.00412008
push 0xa0000000
push dword [esp + 0x44]
call fcn.00419fb0
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call sub.WININET.DLL_HttpAddRequestHeadersA
mov edx, dword [0x44b5e8]
push dword [0x44c088]
call fcn.00423ed0
lea eax, [esp + 0x48]
push eax
call fcn.00423e50
push dword [0x44c088]
push dword [0x44c088]
push 0x400
call fcn.0041aed0
lea eax, [esp + 0x4c]
push eax
call fcn.00423e50
push 0x400
mov eax, dword [esp + 0x4c]
push eax
push dword [esp + 0x4c]
call fcn.0041af10
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004212e0
push dword [0x44c088]
mov edx, str.Authorization:_Basic
call fcn.00423ed0
mov edx, dword [esp + 0x4c]
call fcn.00423ed0
mov edx, 0x443daa
call fcn.00423ed0
lea eax, [esp + 0x44]
push eax
call fcn.00423e50
push 0xa0000000
push dword [esp + 0x44]
call fcn.00419fb0
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call sub.WININET.DLL_HttpAddRequestHeadersA
mov edx, str.__Cache_Control:_no_cache_r_n
lea ecx, [esp + 0x40]
call fcn.00412008
push 0xa0000000
push dword [esp + 0x44]
call fcn.00419fb0
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call sub.WININET.DLL_HttpAddRequestHeadersA
push dword [esp + 0x34]
mov edx, str.POST
pop ecx
call fcn.00423f30
je 0x408b9a
mov edx, 0x44339c
lea ecx, [esp + 0x40]
call fcn.00412008
push 0xa0000000
push dword [esp + 0x44]
call fcn.00419fb0
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call sub.WININET.DLL_HttpAddRequestHeadersA
push dword [esp + 8]
mov edx, 0x44301e
pop ecx
call fcn.00423f30
je 0x408baf
xor eax, eax
jmp 0x408bb4
mov eax, 1
and eax, eax
je 0x408c01
push dword [0x44c088]
mov edx, str.Cookie:
call fcn.00423ed0
mov edx, dword [esp + 0xc]
call fcn.00423ed0
mov edx, 0x443daa
call fcn.00423ed0
lea eax, [esp + 0x44]
push eax
call fcn.00423e50
push 0xa0000000
push dword [esp + 0x44]
call fcn.00419fb0
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call sub.WININET.DLL_HttpAddRequestHeadersA
push dword [esp + 4]
push str.tracelog.txt
call fcn.00406bc6
jmp 0x408c89
push dword [esp + 4]
call fcn.00419fb0
push eax
push dword [esp + 8]
push 0
push 0x44301e
push dword [esp + 0x4c]
call sub.WININET.DLL_HttpSendRequestA
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x78]
cmp ebx, 1
jne 0x408d79
push dword [0x44c088]
push dword [0x44c088]
push 0x400
call fcn.0041aed0
lea eax, [esp + 0x58]
push eax
call fcn.00423e50
lea eax, [esp + 0x58]
push eax
push 0x400
mov eax, dword [esp + 0x5c]
push eax
push dword [esp + 0x48]
call sub.WININET.DLL_InternetReadFile
mov edx, dword [esp + 0x5c]
push dword [0x44c088]
call fcn.00423ed0
push dword [0x44c088]
push dword [0x44c088]
push dword [esp + 0x64]
push dword [0x44c088]
push dword [0x44c088]
push 0x18
push 0xffffffff
mov eax, dword [esp + 0x74]
push eax
call fcn.00423310
mov edx, dword [0x449b10]
add dword [esp], edx
call fcn.0041ab00
pop eax
lea eax, [esp + 0x60]
push eax
call fcn.00423e50
push dword [0x44c088]
push dword [0x44c088]
push 0x400
call fcn.0041aed0
lea eax, [esp + 0x58]
push eax
call fcn.00423e50
mov ebx, dword [esp + 0x58]
and ebx, ebx
jne 0x408cdb
jmp 0x408de8
push dword [0x44c088]
push dword [0x44c088]
push 0x104
call fcn.0041aed0
lea eax, [esp + 0x58]
push eax
call fcn.00423e50
mov dword [esp + 0x60], 0
push dword [esp + 0x54]
call fcn.00419fb0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x5c]
push eax
push 0x2b
push dword [esp + 0x4c]
call sub.WININET.DLL_HttpQueryInfoA
and eax, eax
je 0x408de8
mov edx, dword [esp + 0x54]
push dword [0x44c088]
call fcn.00423ed0
lea eax, [esp + 0x60]
push eax
call fcn.00423e50
push dword [esp + 0x28]
call sub.WININET.DLL_InternetCloseHandle
push dword [esp + 0x38]
call sub.WININET.DLL_InternetCloseHandle
push dword [esp + 0x3c]
call sub.WININET.DLL_InternetCloseHandle
push dword [esp + 0x50]
call sub.WININET.DLL_InternetCloseHandle
mov edx, dword [esp + 0x5c]
push dword [0x44c088]
call fcn.00423ed0
pop eax
add eax, dword [0x449b10]
jmp 0x408e32
push dword [esp + 0x10]
call fcn.00423f60
push dword [esp + 4]
call fcn.00423f60
push dword [esp + 0xc]
call fcn.00423f60
push dword [esp + 0x4c]
call fcn.00423f60
push dword [esp + 0x20]
call fcn.00423f60
push dword [esp + 0x14]
call fcn.00423f60
push dword [esp]
call fcn.00423f60
push dword [esp + 0x40]
call fcn.00423f60
push dword [esp + 0x48]
call fcn.00423f60
push dword [esp + 0x5c]
call fcn.00423f60
push dword [esp + 0x34]
call fcn.00423f60
push dword [esp + 0x54]
call fcn.00423f60
push dword [esp + 0x44]
call fcn.00423f60
push dword [esp + 8]
call fcn.00423f60
push dword [esp + 0x1c]
call fcn.00423f60
add esp, 0x68
pop ebx
ret 0x28