Function at 0x41055b
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 0x440260
call fcn.0041b9f0
xor ebx, ebx
mov byte [ebp - 0x17c], bl
push 0xff
push ebx
lea eax, [ebp - 0x17b]
push eax
call fcn.0041b010
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 0x436d4c
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 0x4108f9
push dword [ebp + 8]
call fcn.0041033c
pop ecx
test eax, eax
je 0x4108f9
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x436d50
push ebx
call fcn.0041033c
add esp, 0x10
test eax, eax
je 0x4105fe
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call edi
xor eax, eax
inc eax
jmp 0x4108fb
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 0x436d58
call dword [sym.imp.wininet.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x4108be
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041b010
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 0x436bea
push 0x436beb
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 0x4108be
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x4c], ebx
je 0x4106b6
push dword [ebp - 0x50]
jmp 0x4106bb
push 0x436d60
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x4106d7
push dword [ebp - 0x48]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push 0x436bf2
push 0x436d64
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 0x4108be
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 0x410767
cmp dword [ebp - 0x20], ebx
je 0x4108be
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x410762
sub ecx, 5
je 0x410762
sub ecx, 0x16
je 0x410762
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 0x41070e
jmp 0x41070b
mov dword [ebp - 0x20], ebx
jmp 0x41070e
cmp dword [ebp - 0x20], ebx
je 0x4108be
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 0x4107a3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x4107ff
cmp dword [ebp - 0x20], ebx
je 0x4107ff
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 0x4107da
mov dword [ebp - 0x20], ebx
jmp 0x4107aa
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 0x4107aa
cmp dword [ebp - 0x2c], 0xc8
jne 0x4108be
mov dword [ebp - 0x24], 0x100
mov byte [ebp - 0x27c], bl
push 0xff
push ebx
lea eax, [ebp - 0x27b]
push eax
call fcn.0041b010
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 0x4108be
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp eax, 2
jl 0x4108be
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 0x436d80
push ebx
call fcn.0041033c
add esp, 0xc
test eax, eax
je 0x4108be
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.0041033c
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.004108ce
mov eax, dword [ebp - 0x3c]
jmp 0x4108fb
xor eax, eax
call fcn.0041ba2b
ret