Function at 0x40c13a
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
mov ebp, esp
push 0xffffffffffffffff
push 0x4109f0
push 0x40e836
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
push ebx
push esi
push edi
mov dword [ebp - 0x128], 4
push 0x4156b8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
test eax, eax
je 0x40c4f9
push dword [ebp + 8]
call fcn.0040aac1
pop ecx
test eax, eax
je 0x40c4f9
xor esi, esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push str.jupdate
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x11c], eax
cmp eax, esi
je 0x40c4a9
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x26c], 0x3c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x25c], eax
mov eax, 0x100
mov dword [ebp - 0x258], eax
mov word [ebp - 0x254], si
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x26c]
push eax
push esi
push dword [ebp + 8]
call ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x415d6c
push 0x415d70
push dword [ebp - 0x254]
push dword [ebp - 0x25c]
push dword [ebp - 0x11c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x12c], eax
cmp eax, esi
je 0x40c4a9
cmp dword [ebp - 0x23c], esi
je 0x40c28a
push dword [ebp - 0x240]
jmp 0x40c28f
push 0x4156c4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x234], esi
je 0x40c2b7
push dword [ebp - 0x238]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x4400000
push esi
push 0x415d74
push 0x4156c8
lea eax, [ebp - 0x118]
push eax
push str.HEAD
push dword [ebp - 0x12c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x124], eax
cmp eax, esi
je 0x40c4a9
push 1
pop edi
mov dword [ebp - 0x130], edi
push esi
push esi
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40c365
cmp dword [ebp - 0x130], esi
je 0x40c4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x478], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x40c35d
sub ecx, 5
je 0x40c35d
sub ecx, 0x16
je 0x40c35d
mov dword [ebp - 0x130], esi
push esi
push 7
push eax
push dword [ebp - 0x124]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40c2f7
jmp 0x40c2f1
mov dword [ebp - 0x130], esi
jmp 0x40c2f7
cmp dword [ebp - 0x130], esi
je 0x40c4a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], esi
push esi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x470]
push eax
mov ebx, 0x20000013
push ebx
push dword [ebp - 0x124]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call edi
test eax, eax
jne 0x40c3b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x130], 1
cmp dword [ebp - 0x470], 0x197
jne 0x40c433
cmp dword [ebp - 0x130], esi
je 0x40c433
push esi
push 7
push dword [ebp - 0x474]
push dword [ebp - 0x124]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40c3ff
mov dword [ebp - 0x130], esi
jmp 0x40c3c0
push esi
push esi
push esi
push esi
push dword [ebp - 0x124]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x128], 4
push esi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push dword [ebp - 0x124]
call edi
jmp 0x40c3c0
cmp dword [ebp - 0x470], 0xc8
jne 0x40c4a9
mov dword [ebp - 0x128], 0x100
push str.COUNTRY
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x118]
push eax
push 0xffff
push dword [ebp - 0x124]
call edi
test eax, eax
je 0x40c4a9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40c4a9
mov dword [ebp - 0x120], 1
push 3
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
or dword [ebp - 4], 0xffffffff
call fcn.0040c4bc
mov eax, dword [ebp - 0x120]
jmp 0x40c4fb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret