Function at 0x4107ad
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 0x4404b0
call fcn.0041c080
xor ebx, ebx
mov byte [ebp - 0x17c], bl
push 0xff
push ebx
lea eax, [ebp - 0x17b]
push eax
call fcn.0041b5c0
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 0x436ea4
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 0x410b4b
push dword [ebp + 8]
call fcn.00417c50
pop ecx
test eax, eax
je 0x410b4b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x436ea8
push ebx
call fcn.00418655
add esp, 0x10
test eax, eax
je 0x410850
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call edi
xor eax, eax
inc eax
jmp 0x410b4d
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 0x436eb0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x410b10
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041b5c0
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 0x436d42
push 0x436d43
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 0x410b10
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x4c], ebx
je 0x410908
push dword [ebp - 0x50]
jmp 0x41090d
push 0x436eb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x410929
push dword [ebp - 0x48]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push 0x436d4a
push 0x436ebc
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 0x410b10
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 0x4109b9
cmp dword [ebp - 0x20], ebx
je 0x410b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x4109b4
sub ecx, 5
je 0x4109b4
sub ecx, 0x16
je 0x4109b4
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 0x410960
jmp 0x41095d
mov dword [ebp - 0x20], ebx
jmp 0x410960
cmp dword [ebp - 0x20], ebx
je 0x410b10
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 0x4109f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x410a51
cmp dword [ebp - 0x20], ebx
je 0x410a51
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 0x410a2c
mov dword [ebp - 0x20], ebx
jmp 0x4109fc
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 0x4109fc
cmp dword [ebp - 0x2c], 0xc8
jne 0x410b10
mov dword [ebp - 0x24], 0x100
mov byte [ebp - 0x27c], bl
push 0xff
push ebx
lea eax, [ebp - 0x27b]
push eax
call fcn.0041b5c0
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 0x410b10
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x410b10
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 0x436ed8
push ebx
call fcn.00417597
add esp, 0xc
test eax, eax
je 0x410b10
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.00417d91
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.00410b20
mov eax, dword [ebp - 0x3c]
jmp 0x410b4d
xor eax, eax
call fcn.0041c0bb
ret