Function at 0x40c10c
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 0x42dc28
push 0x414210
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.00413c80
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 0x427ab4
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 0x40c4e0
push esi
call fcn.0040c87a
pop ecx
test eax, eax
je 0x40c4e0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.Country
push ebx
call fcn.0040d070
add esp, 0x10
test eax, eax
je 0x40c1ee
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
inc eax
jmp 0x40c4e2
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 0x40c4a2
push 0x3c
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.00413c80
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, 0x4266bb
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 0x40c4a2
lea eax, [ebp + 0x400]
cmp dword [ebp - 0x50], ebx
je 0x40c29e
push dword [ebp - 0x54]
jmp 0x40c2a3
push 0x426738
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x48], ebx
je 0x40c2bf
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 0x40c4a2
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 0x40c34b
cmp dword [ebp - 0x20], ebx
je 0x40c4a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x40c346
sub ecx, 5
je 0x40c346
sub ecx, 0x16
je 0x40c346
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 0x40c2f2
jmp 0x40c2ef
mov dword [ebp - 0x20], ebx
jmp 0x40c2f2
cmp dword [ebp - 0x20], ebx
je 0x40c4a2
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 0x40c387
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x38], 0x197
jne 0x40c3e3
cmp dword [ebp - 0x20], ebx
je 0x40c3e3
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 0x40c3be
mov dword [ebp - 0x20], ebx
jmp 0x40c38e
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 0x40c38e
cmp dword [ebp - 0x38], 0xc8
jne 0x40c4a2
mov dword [ebp - 0x28], 0x100
mov byte [ebp + 0x300], bl
push 0xff
push ebx
lea eax, [ebp + 0x301]
push eax
call fcn.00413c80
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 0x40c4a2
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40c4a2
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.0040c5b9
add esp, 0xc
test eax, eax
je 0x40c4a2
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.0040ca21
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c4b5
mov eax, dword [ebp - 0x40]
jmp 0x40c4e2
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.004141fb
add ebp, 0x504
leave
ret