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

Disassembly:
push ebp
lea ebp, [esp - 0x504]
sub esp, 0x504
push 0xfffffffffffffffe
push 0x42da50
push 0x413f50
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x431420]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x500], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x50c]
mov eax, dword [ebp + 0x510]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov byte [ebp + 0x400], bl
push 0xff
push ebx
lea eax, [ebp + 0x401]
push eax
call fcn.004139c0
add esp, 0xc
mov byte [ebp - 0x2c], bl
xor eax, eax
lea edi, [ebp - 0x2b]
stosw word es:[edi], ax
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x44], 3
push 0x427ac8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x40c602
push esi
call fcn.0040c99c
pop ecx
test eax, eax
je 0x40c602
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.Country
push ebx
call fcn.0040d116
add esp, 0x10
test eax, eax
je 0x40c310
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
inc eax
jmp 0x40c604
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push str.jupdate
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40c5c4
push 0x3c
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.004139c0
add esp, 0xc
mov dword [ebp - 0x80], 0x3c
lea eax, [ebp]
mov dword [ebp - 0x70], eax
mov eax, 0x100
mov dword [ebp - 0x6c], eax
xor ecx, ecx
mov word [ebp - 0x68], cx
lea ecx, [ebp + 0x200]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
lea ecx, [ebp + 0x100]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
call edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
mov edi, 0x4266a7
push edi
push edi
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40c5c4
lea eax, [ebp + 0x400]
cmp dword [ebp - 0x50], ebx
je 0x40c3c0
push dword [ebp - 0x54]
jmp 0x40c3c5
push 0x426748
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x48], ebx
je 0x40c3e1
push dword [ebp - 0x4c]
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push edi
push str.HTTP_1.1
lea eax, [ebp + 0x400]
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 0x40c5c4
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 0x40c46d
cmp dword [ebp - 0x20], ebx
je 0x40c5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x40c468
sub ecx, 5
je 0x40c468
sub ecx, 0x16
je 0x40c468
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 0x40c414
jmp 0x40c411
mov dword [ebp - 0x20], ebx
jmp 0x40c414
cmp dword [ebp - 0x20], ebx
je 0x40c5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
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 0x40c4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x38], 0x197
jne 0x40c505
cmp dword [ebp - 0x20], ebx
je 0x40c505
push ebx
push 7
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40c4e0
mov dword [ebp - 0x20], ebx
jmp 0x40c4b0
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x28], 4
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call edi
jmp 0x40c4b0
cmp dword [ebp - 0x38], 0xc8
jne 0x40c5c4
mov dword [ebp - 0x28], 0x100
mov byte [ebp + 0x300], bl
push 0xff
push ebx
lea eax, [ebp + 0x301]
push eax
call fcn.004139c0
add esp, 0xc
push str.COUNTRY
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x400]
push eax
push 0xffff
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x40c5c4
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40c5c4
mov dword [ebp - 0x40], 1
push 3
lea eax, [ebp + 0x400]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 0x24]
push str.Country
push ebx
call fcn.0040c6db
add esp, 0xc
test eax, eax
je 0x40c5c4
push dword [ebp - 0x24]
push str.Save_Country_Code__s_after_GetCountry__
lea eax, [ebp + 0x300]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x300]
push eax
call fcn.0040cb43
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c5d7
mov eax, dword [ebp - 0x40]
jmp 0x40c604
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x500]
xor ecx, ebp
call fcn.00413f3b
add ebp, 0x504
leave
ret