Function at 0x4104dd
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.00456fe0
push 0xffffffffffffffff
push 0x4613e0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x488180]
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 - 0x24], eax
mov dword [ebp - 0x18], ebx
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.76E5A40C_3AE1_4028_9F10_7C62520BD94F
call fcn.004084cc
mov byte [ebp - 4], 1
cmp dword [ebp + 0x24b0], 0x10
mov eax, dword [ebp + 0x249c]
jae 0x410558
lea eax, [ebp + 0x249c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004084cc
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
call fcn.004084ee
mov byte [ebp - 4], bl
lea ebx, [ebp + 0x246c]
call fcn.0040fec8
add esp, 0x54
lea esi, [ebp]
mov byte [ebp - 4], 3
call fcn.0040e3c9
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.0042a528
cmp dword [eax + 0x18], 8
jb 0x4105aa
mov esi, dword [eax + 4]
jmp 0x4105ad
lea esi, [eax + 4]
lea eax, [ebp]
call fcn.0040ea1b
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040e62f
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x40]
call fcn.00409a53
cmp dword [ebp + 0x2450], 3
push ebx
push ebx
push ebx
push ebx
push 0x46c014
sete byte [ebp - 0xd]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x410624
push str.SettingsLoader::GetSettingsString___InternetOpen_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00401281
push 0x47b878
lea eax, [ebp - 0x88]
push eax
call fcn.00447fb3
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 - 0x20], eax
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x410665
push str.SettingsLoader::GetSettingsString___InternetConnect_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 7
jmp 0x410603
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410833
lea eax, [ebp + 0x144a]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 8
call fcn.0040ef2b
movzx eax, byte [ebp - 0xd]
push ebx
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push ebx
push 0x46bc80
push str.HTTP_1.0
push dword [ebp - 0x1c]
push 0x46c244
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 9
cmp edi, ebx
jne 0x4106d7
push str.SettingsLoader::GetSettingsString___HttpOpenRequest_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 0xa
jmp 0x410603
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x4106fc
push str.SettingsLoader::GetSettingsString___HttpSendRequest_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 0xb
jmp 0x410603
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 0x14], ebx
jmp 0x41071c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x410747
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
call esi
test eax, eax
je 0x410707
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x41075d
push str.SettingsLoader::GetSettingsString___No_Settings_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 0xd
jmp 0x410603
push str.SettingsLoader::GetSettingsString___InternetQueryDataAvailable_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 0xc
jmp 0x410603
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00410878
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x14]
lea esi, [ebp - 0x60]
push ebx
call fcn.004108cd
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x14]
je 0x4107a2
push str.SettingsLoader::GetSettingsString___InternetReadFile_ERROR
lea ecx, [ebp - 0x40]
call fcn.004084cc
mov byte [ebp - 4], 0xf
jmp 0x410603
push ebx
lea esi, [ebp - 0x60]
call fcn.004108cd
mov ecx, dword [ebp - 0x24]
push eax
call fcn.004084cc
cmp dword [ebp - 0x54], ebx
je 0x4107c2
push dword [ebp - 0x54]
call fcn.00443d62
pop ecx
push dword [ebp - 0x60]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00443d62
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push edi
call esi
lea eax, [ebp - 0x1c]
call fcn.0040f17c
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x18]
call esi
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.004097af
push ebx
push 1
lea ecx, [ebp + 0x2498]
call fcn.004097af
mov eax, dword [ebp - 0x24]
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.00443d6d
add ebp, 0x248c
leave
ret 0x20