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

Disassembly:
push 0x570
push 0x41fe10
call fcn.00411ee0
xor ebx, ebx
mov byte [ebp - 0x180], bl
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x17f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
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 0x41f748
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x40ae07
push dword [ebp + 8]
call fcn.0040b18a
pop ecx
test eax, eax
je 0x40ae07
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push str.Country
push ebx
call fcn.0040b7e0
add esp, 0x10
test eax, eax
je 0x40ab17
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call esi
xor eax, eax
inc eax
jmp 0x40ae09
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 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 0x40adcc
push 0x3c
pop esi
push esi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00412120
add esp, 0xc
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x380]
mov dword [ebp - 0x6c], eax
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x68], eax
mov word [ebp - 0x64], bx
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x580]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
mov edi, 0x41e625
push edi
push edi
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 0x40adcc
lea eax, [ebp - 0x180]
cmp dword [ebp - 0x4c], ebx
je 0x40abca
push dword [ebp - 0x50]
jmp 0x40abcf
push 0x41e6b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x40abeb
push dword [ebp - 0x48]
lea eax, [ebp - 0x180]
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 - 0x180]
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 0x40adcc
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 0x40ac7a
cmp dword [ebp - 0x20], ebx
je 0x40adcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x40ac75
sub ecx, 5
je 0x40ac75
sub ecx, 0x16
je 0x40ac75
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 0x40ac1e
jmp 0x40ac1b
mov dword [ebp - 0x20], ebx
jmp 0x40ac1e
cmp dword [ebp - 0x20], ebx
je 0x40adcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x20000013
push edi
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call esi
test eax, eax
jne 0x40acb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x40ad12
cmp dword [ebp - 0x20], ebx
je 0x40ad12
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 0x40aced
mov dword [ebp - 0x20], ebx
jmp 0x40acbd
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 edi
push dword [ebp - 0x1c]
call esi
jmp 0x40acbd
cmp dword [ebp - 0x2c], 0xc8
jne 0x40adcc
mov dword [ebp - 0x24], pe_nt_image_headers32
mov byte [ebp - 0x280], bl
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x27f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.COUNTRY
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x180]
push eax
push 0xffff
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40adcc
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40adcc
mov dword [ebp - 0x38], 1
push 3
lea eax, [ebp - 0x180]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
push str.Country
push ebx
call fcn.0040aeb1
add esp, 0xc
test eax, eax
je 0x40adcc
push dword [ebp + 0xc]
push str.Save_Country_Code__s_after_GetCountry__
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x280]
push eax
call fcn.0040b31c
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.0040addc
mov eax, dword [ebp - 0x38]
jmp 0x40ae09
xor eax, eax
call fcn.00411f1b
ret