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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00441210
push 0xffffffffffffffff
push 0x457158
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x473b98]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov ecx, dword [ebp + 0x1010]
mov edx, dword [ebp + 0x1014]
mov dword [ebp - 0x30], eax
push 0x46a610
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 1
call fcn.004403a2
push 0xfff
lea ecx, [ebp + 1]
push 0
push ecx
mov byte [ebp], 0
call fcn.0043f9f0
add esp, 0xc
push 0x45bd71
lea ecx, [ebp - 0x28]
call fcn.00408e10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], 0xc350
call fcn.004011f0
lea ecx, [ebp - 0x18]
call fcn.004011f0
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00408dd0
lea ecx, [ebp - 0x18]
call fcn.0040b8d0
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x14]
mov dword [edx], 0
call fcn.004011f0
lea ecx, [ebp - 0x1c]
call fcn.004011f0
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 6
jl 0x40e30f
push str.HTTP:__
push esi
call fcn.00440b9d
add esp, 8
test eax, eax
je 0x40e2d1
sub eax, esi
cmp eax, 0xffffffff
jle 0x40e2d1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edi
call fcn.0040deb0
mov esi, dword [ebp - 0x14]
add esp, 0xc
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x30], 0
jl 0x40e2c8
push 0x45c5ec
push esi
call fcn.00440b9d
add esp, 8
test eax, eax
je 0x40e2c8
sub eax, esi
cmp eax, 0xffffffff
jle 0x40e2c8
mov edi, dword [esi - 0xc]
test edi, edi
jge 0x40e237
or eax, 0xffffffff
jmp 0x40e250
push 0x45c5ec
push esi
call fcn.00440b9d
add esp, 8
test eax, eax
jne 0x40e24e
or eax, 0xffffffff
jmp 0x40e250
sub eax, esi
push edi
inc eax
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408170
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 7
jge 0x40e26e
or eax, 0xffffffff
jmp 0x40e287
push 0x45c5ec
push esi
call fcn.00440b9d
add esp, 8
test eax, eax
jne 0x40e285
or eax, 0xffffffff
jmp 0x40e287
sub eax, esi
push eax
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408170
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004084f0
lea ecx, [ebp - 0x20]
call fcn.00401180
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00441ea3
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
call fcn.00401180
jmp 0x40e30f
mov dword [ebp - 0x20], 0x50
jmp 0x40e312
cmp dword [esi - 0xc], 0
jl 0x40e30f
push str.HTTPS:__
push esi
call fcn.00440b9d
add esp, 8
test eax, eax
je 0x40e30f
sub eax, esi
cmp eax, 0xffffffff
jle 0x40e30f
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040deb0
add esp, 0xc
mov dword [ebp - 0x30], 0x801000
mov dword [ebp - 0x20], 0x1bb
mov esi, dword [ebp - 0x14]
push 0x45bd71
lea ecx, [ebp - 0x28]
call fcn.0040d590
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_5.5_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x40e369
lea ecx, [ebp - 0x1c]
call fcn.00401180
lea ecx, [ebp - 0x14]
call fcn.00401180
lea ecx, [ebp - 0x18]
call fcn.00401180
lea ecx, [ebp - 0x2c]
call fcn.00401180
lea ecx, [ebp - 0x28]
call fcn.00401180
mov eax, 0x40e572
ret
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp - 0x38]
push ecx
push 2
push ebx
call edi
mov edx, dword [ebp - 0x20]
push 0
push 0
push 3
push 0x45c5b8
push 0x45c5b8
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x40e3d7
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00401180
lea ecx, [ebp - 0x14]
call fcn.00401180
lea ecx, [ebp - 0x18]
call fcn.00401180
lea ecx, [ebp - 0x2c]
call fcn.00401180
lea ecx, [ebp - 0x28]
call fcn.00401180
mov eax, 0x40e572
ret
push 4
lea ecx, [ebp - 0x38]
push ecx
push 6
push ebx
call edi
push 4
lea edx, [ebp - 0x38]
push edx
push 5
push ebx
call edi
mov eax, dword [ebp - 0x30]
push 1
or eax, 0x80680000
push eax
mov eax, dword [ebp - 0x1c]
push 0
push 0x45bd71
push str.HTTP_1.0
push eax
push 0x45c5a8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40e457
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401180
lea ecx, [ebp - 0x14]
call fcn.00401180
lea ecx, [ebp - 0x18]
call fcn.00401180
lea ecx, [ebp - 0x2c]
call fcn.00401180
lea ecx, [ebp - 0x28]
call fcn.00401180
mov eax, 0x40e572
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 0xc]
push 0
push 0x45bd71
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40e4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401180
lea ecx, [ebp - 0x14]
call fcn.00401180
lea ecx, [ebp - 0x18]
call fcn.00401180
lea ecx, [ebp - 0x2c]
call fcn.00401180
lea ecx, [ebp - 0x28]
call fcn.00401180
mov eax, 0x40e572
ret
lea edx, [ebp - 0x34]
push edx
push 0xfff
lea eax, [ebp]
push eax
push edi
xor esi, esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40e477
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40e528
mov ecx, dword [ebx]
mov byte [ebp + eax], 0
add eax, esi
push eax
push ecx
call fcn.00441c72
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp]
mov dword [ebx], eax
push ecx
add eax, esi
push eax
call fcn.00441eb0
add esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0xfff
lea ecx, [ebp]
push ecx
push edi
mov dword [edx], esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40e4d4
mov ebx, dword [ebp - 0x20]
jmp 0x40e477
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401180
lea ecx, [ebp - 0x14]
call fcn.00401180
lea ecx, [ebp - 0x18]
call fcn.00401180
lea ecx, [ebp - 0x2c]
call fcn.00401180
lea ecx, [ebp - 0x28]
call fcn.00401180
mov eax, 0x40e56b
ret