Function at 0x40e93a
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x248c]
mov eax, 0x248c
call fcn.004505f0
push 0xffffffffffffffff
push 0x45a71e
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp + 0x2488], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2494]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.76E5A40C_3AE1_4028_9F10_7C62520BD94F
call fcn.004073f1
mov byte [ebp - 4], 1
cmp dword [ebp + 0x24b0], 0x10
mov eax, dword [ebp + 0x249c]
jae 0x40e9b5
lea eax, [ebp + 0x249c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004073f1
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00407413
mov byte [ebp - 4], bl
lea ebx, [ebp + 0x246c]
call fcn.0040e321
add esp, 0x54
lea esi, [ebp]
mov byte [ebp - 4], 3
call fcn.0040c828
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.00424316
cmp dword [eax + 0x18], 8
jb 0x40ea07
mov esi, dword [eax + 4]
jmp 0x40ea0a
lea esi, [eax + 4]
lea eax, [ebp]
call fcn.0040ce7a
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040ca8e
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00408944
push ebx
push ebx
push ebx
push ebx
push 0x4649ac
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x40ea76
push str.SettingsLoader::GetSettingsString___InternetOpen_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x84]
push eax
call fcn.00441753
push ebx
push ebx
push 3
lea ecx, [ebp + 0x346]
push ecx
lea ecx, [ebp + 0x244]
push ecx
push dword [ebp + 0x244c]
lea ecx, [ebp + 0x42]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x40eab7
push str.SettingsLoader::GetSettingsString___InternetConnect_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 7
jmp 0x40ea55
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ec7c
lea eax, [ebp + 0x144a]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 8
call fcn.0040d375
push ebx
push 0x800000
push ebx
push 0x46471c
push str.HTTP_1.0
push dword [ebp - 0x18]
push 0x464bdc
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 9
cmp edi, ebx
jne 0x40eb20
push str.SettingsLoader::GetSettingsString___HttpOpenRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 0xa
jmp 0x40ea55
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x40eb45
push str.SettingsLoader::GetSettingsString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 0xb
jmp 0x40ea55
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 0x10], ebx
jmp 0x40eb65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40eb90
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
call esi
test eax, eax
je 0x40eb50
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x40eba6
push str.SettingsLoader::GetSettingsString___No_Settings_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 0xd
jmp 0x40ea55
push str.SettingsLoader::GetSettingsString___InternetQueryDataAvailable_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 0xc
jmp 0x40ea55
inc eax
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ecc1
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x10]
lea esi, [ebp - 0x5c]
push ebx
call fcn.0040ed16
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x10]
je 0x40ebeb
push str.SettingsLoader::GetSettingsString___InternetReadFile_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073f1
mov byte [ebp - 4], 0xf
jmp 0x40ea55
push ebx
lea esi, [ebp - 0x5c]
call fcn.0040ed16
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004073f1
cmp dword [ebp - 0x50], ebx
je 0x40ec0b
push dword [ebp - 0x50]
call fcn.0043d7e2
pop ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0043d7e2
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push edi
call esi
lea eax, [ebp - 0x18]
call fcn.0040d5c6
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x14]
call esi
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.0040860c
push ebx
push 1
lea ecx, [ebp + 0x2498]
call fcn.0040860c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2488]
xor ecx, ebp
call fcn.0043d7ed
add ebp, 0x248c
leave
ret 0x20