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

Disassembly:
push 0x468
push 0x420b40
call fcn.00410f50
mov dword [ebp - 0x24], 4
push 0x420b38
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 0x40d4d3
push dword [ebp + 8]
call fcn.0040de2b
pop ecx
test eax, eax
je 0x40d4d3
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], 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 - 0x30], eax
cmp eax, esi
je 0x40d498
push 0x3c
pop edi
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.00410ef0
add esp, 0xc
mov dword [ebp - 0x74], edi
lea eax, [ebp - 0x378]
mov dword [ebp - 0x64], eax
mov eax, 0x100
mov dword [ebp - 0x60], eax
mov word [ebp - 0x5c], si
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x74]
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
mov edi, 0x41f682
push edi
push edi
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d498
lea eax, [ebp - 0x178]
cmp dword [ebp - 0x44], esi
je 0x40d2e9
push dword [ebp - 0x48]
jmp 0x40d2ee
push 0x41f680
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp dword [ebp - 0x3c], esi
je 0x40d30a
push dword [ebp - 0x40]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push 0x4400000
push esi
push edi
push str.HTTP_1.1
lea eax, [ebp - 0x178]
push eax
push str.HEAD
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40d498
xor edi, edi
inc edi
mov dword [ebp - 0x20], edi
push esi
push esi
push esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40d399
cmp dword [ebp - 0x20], esi
je 0x40d498
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x78], eax
mov ecx, eax
sub ecx, 0x2ee2
je 0x40d394
sub ecx, 5
je 0x40d394
sub ecx, 0x16
je 0x40d394
mov dword [ebp - 0x20], esi
push esi
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 0x40d33d
jmp 0x40d33a
mov dword [ebp - 0x20], esi
jmp 0x40d33d
cmp dword [ebp - 0x20], esi
je 0x40d498
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ebx, 0x20000013
push ebx
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call edi
test eax, eax
jne 0x40d3d5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x40d431
cmp dword [ebp - 0x20], esi
je 0x40d431
push esi
push 7
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40d40c
mov dword [ebp - 0x20], esi
jmp 0x40d3dc
push esi
push esi
push esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x24], 4
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x1c]
call edi
jmp 0x40d3dc
cmp dword [ebp - 0x2c], 0xc8
jne 0x40d498
mov dword [ebp - 0x24], 0x100
push str.COUNTRY
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x178]
push eax
push 0xffff
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x40d498
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 2
jl 0x40d498
mov dword [ebp - 0x38], 1
push 3
lea eax, [ebp - 0x178]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
or dword [ebp - 4], 0xffffffff
call fcn.0040d4a8
mov eax, dword [ebp - 0x38]
jmp 0x40d4d5
xor eax, eax
call fcn.00410f8b
ret