Function at 0x40e98a
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.004511c0
push 0xffffffffffffffff
push 0x45b363
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x47f180]
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.004073fe
mov byte [ebp - 4], 1
cmp dword [ebp + 0x24b0], 0x10
mov eax, dword [ebp + 0x249c]
jae 0x40ea05
lea eax, [ebp + 0x249c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004073fe
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00407420
mov byte [ebp - 4], bl
lea ebx, [ebp + 0x246c]
call fcn.0040e371
add esp, 0x54
lea esi, [ebp]
mov byte [ebp - 4], 3
call fcn.0040c878
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.0042502b
cmp dword [eax + 0x18], 8
jb 0x40ea57
mov esi, dword [eax + 4]
jmp 0x40ea5a
lea esi, [eax + 4]
lea eax, [ebp]
call fcn.0040ceca
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040cade
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00408971
push ebx
push ebx
push ebx
push ebx
push 0x4659a4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x40eac6
push str.SettingsLoader::GetSettingsString___InternetOpen_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040128c
push 0x4732c0
lea eax, [ebp - 0x84]
push eax
call fcn.00442373
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 0x40eb07
push str.SettingsLoader::GetSettingsString___InternetConnect_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 7
jmp 0x40eaa5
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040eccc
lea eax, [ebp + 0x144a]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 8
call fcn.0040d3c5
push ebx
push 0x800000
push ebx
push 0x465714
push str.HTTP_1.0
push dword [ebp - 0x18]
push 0x465bd4
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 0x40eb70
push str.SettingsLoader::GetSettingsString___HttpOpenRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 0xa
jmp 0x40eaa5
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x40eb95
push str.SettingsLoader::GetSettingsString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 0xb
jmp 0x40eaa5
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 0x10], ebx
jmp 0x40ebb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40ebe0
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 0x40eba0
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x40ebf6
push str.SettingsLoader::GetSettingsString___No_Settings_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 0xd
jmp 0x40eaa5
push str.SettingsLoader::GetSettingsString___InternetQueryDataAvailable_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 0xc
jmp 0x40eaa5
inc eax
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ed11
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x10]
lea esi, [ebp - 0x5c]
push ebx
call fcn.0040ed66
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x10]
je 0x40ec3b
push str.SettingsLoader::GetSettingsString___InternetReadFile_ERROR
lea ecx, [ebp - 0x3c]
call fcn.004073fe
mov byte [ebp - 4], 0xf
jmp 0x40eaa5
push ebx
lea esi, [ebp - 0x5c]
call fcn.0040ed66
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004073fe
cmp dword [ebp - 0x50], ebx
je 0x40ec5b
push dword [ebp - 0x50]
call fcn.0043e402
pop ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0043e402
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push edi
call esi
lea eax, [ebp - 0x18]
call fcn.0040d616
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x14]
call esi
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.00408639
push ebx
push 1
lea ecx, [ebp + 0x2498]
call fcn.00408639
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.0043e40d
add ebp, 0x248c
leave
ret 0x20