Function at 0x410fe4
Capabilities:
Check http status code
Connect to http server
Create http request
Get geographical location
Parse url
Send data
Send http request

Disassembly:
push 0x56c
push 0x441a88
call fcn.0041cd30
xor ebx, ebx
mov byte [ebp - 0x17c], bl
push 0xff
push ebx
lea eax, [ebp - 0x17b]
push eax
call fcn.0041bdb0
add esp, 0xc
mov byte [ebp - 0x28], bl
xor eax, eax
lea edi, [ebp - 0x27]
stosw word es:[edi], ax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x40], 3
push 0x438404
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
test eax, eax
je 0x411382
push dword [ebp + 8]
call fcn.0041852a
pop ecx
test eax, eax
je 0x411382
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x438408
push ebx
call fcn.00418f2f
add esp, 0x10
test eax, eax
je 0x411087
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call edi
xor eax, eax
inc eax
jmp 0x411384
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push 0x438410
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x411347
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041bdb0
add esp, 0xc
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x6c], eax
mov eax, 0x100
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
push 0x4382a2
push 0x4382a3
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x411347
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x4c], ebx
je 0x41113f
push dword [ebp - 0x50]
jmp 0x411144
push 0x438418
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x411160
push dword [ebp - 0x48]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push 0x4382aa
push 0x43841c
lea eax, [ebp - 0x17c]
push eax
push str.HEAD
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x411347
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4111f0
cmp dword [ebp - 0x20], ebx
je 0x411347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x4111eb
sub ecx, 5
je 0x4111eb
sub ecx, 0x16
je 0x4111eb
mov dword [ebp - 0x20], ebx
push ebx
push 7
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x411197
jmp 0x411194
mov dword [ebp - 0x20], ebx
jmp 0x411197
cmp dword [ebp - 0x20], ebx
je 0x411347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov esi, 0x20000013
push esi
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call edi
test eax, eax
jne 0x41122c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x411288
cmp dword [ebp - 0x20], ebx
je 0x411288
push ebx
push 7
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x411263
mov dword [ebp - 0x20], ebx
jmp 0x411233
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x24], 4
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x1c]
call edi
jmp 0x411233
cmp dword [ebp - 0x2c], 0xc8
jne 0x411347
mov dword [ebp - 0x24], 0x100
mov byte [ebp - 0x27c], bl
push 0xff
push ebx
lea eax, [ebp - 0x27b]
push eax
call fcn.0041bdb0
add esp, 0xc
push str.COUNTRY
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x17c]
push eax
push 0xffff
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x411347
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x411347
mov dword [ebp - 0x3c], 1
push 3
lea eax, [ebp - 0x17c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
push 0x438438
push ebx
call fcn.00417e71
add esp, 0xc
test eax, eax
je 0x411347
push dword [ebp + 0xc]
push str.Save_Country_Code__s_after_GetCountry__
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x27c]
push eax
call fcn.0041866b
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.00411357
mov eax, dword [ebp - 0x3c]
jmp 0x411384
xor eax, eax
call fcn.0041cd6b
ret