Function at 0x40e0e2
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 0x437010
call fcn.00413470
xor ebx, ebx
mov byte [ebp - 0x17c], bl
push 0xff
push ebx
lea eax, [ebp - 0x17b]
push eax
call fcn.00412420
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 0x42fe08
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 0x40e480
push dword [ebp + 8]
call fcn.0040fa49
pop ecx
test eax, eax
je 0x40e480
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x42fe0c
push ebx
call fcn.00410634
add esp, 0x10
test eax, eax
je 0x40e185
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call edi
xor eax, eax
inc eax
jmp 0x40e482
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 0x42fe14
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40e445
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00412420
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 0x42fca6
push 0x42fca7
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 0x40e445
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x4c], ebx
je 0x40e23d
push dword [ebp - 0x50]
jmp 0x40e242
push 0x42fe1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x40e25e
push dword [ebp - 0x48]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push 0x42fcae
push 0x42fe20
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 0x40e445
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 0x40e2ee
cmp dword [ebp - 0x20], ebx
je 0x40e445
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x40e2e9
sub ecx, 5
je 0x40e2e9
sub ecx, 0x16
je 0x40e2e9
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 0x40e295
jmp 0x40e292
mov dword [ebp - 0x20], ebx
jmp 0x40e295
cmp dword [ebp - 0x20], ebx
je 0x40e445
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 0x40e32a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x40e386
cmp dword [ebp - 0x20], ebx
je 0x40e386
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 0x40e361
mov dword [ebp - 0x20], ebx
jmp 0x40e331
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 0x40e331
cmp dword [ebp - 0x2c], 0xc8
jne 0x40e445
mov dword [ebp - 0x24], 0x100
mov byte [ebp - 0x27c], bl
push 0xff
push ebx
lea eax, [ebp - 0x27b]
push eax
call fcn.00412420
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 0x40e445
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40e445
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 0x42fe3c
push ebx
call fcn.0040f31a
add esp, 0xc
test eax, eax
je 0x40e445
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.0040fb5b
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.0040e455
mov eax, dword [ebp - 0x3c]
jmp 0x40e482
xor eax, eax
call fcn.004134ab
ret