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

Disassembly:
push 0x56c
push 0x435920
call fcn.00410df4
xor ebx, ebx
mov byte [ebp - 0x17c], bl
push 0xff
push ebx
lea eax, [ebp - 0x17b]
push eax
call fcn.00411920
add esp, 0xc
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 0x42f588
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
test eax, eax
je 0x40db5a
push dword [ebp + 8]
call fcn.0040f103
pop ecx
test eax, eax
je 0x40db5a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x42f58c
push ebx
call fcn.0040fc9e
add esp, 0x10
test eax, eax
je 0x40d85f
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call edi
xor eax, eax
inc eax
jmp 0x40db5c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push 0x42f594
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40db1f
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
call fcn.00411920
add esp, 0xc
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x6c], eax
mov eax, 0x100
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
push 0x42f426
push 0x42f427
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 0x40db1f
lea eax, [ebp - 0x17c]
cmp dword [ebp - 0x4c], ebx
je 0x40d917
push dword [ebp - 0x50]
jmp 0x40d91c
push 0x42f59c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x44], ebx
je 0x40d938
push dword [ebp - 0x48]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x4400000
push ebx
push 0x42f42e
push 0x42f5a0
lea eax, [ebp - 0x17c]
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 0x40db1f
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 0x40d9c8
cmp dword [ebp - 0x20], ebx
je 0x40db1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2ee2
je 0x40d9c3
sub ecx, 5
je 0x40d9c3
sub ecx, 0x16
je 0x40d9c3
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 0x40d96f
jmp 0x40d96c
mov dword [ebp - 0x20], ebx
jmp 0x40d96f
cmp dword [ebp - 0x20], ebx
je 0x40db1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
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 0x40da04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x2c], 0x197
jne 0x40da60
cmp dword [ebp - 0x20], ebx
je 0x40da60
push ebx
push 7
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x40da3b
mov dword [ebp - 0x20], ebx
jmp 0x40da0b
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 esi
push dword [ebp - 0x1c]
call edi
jmp 0x40da0b
cmp dword [ebp - 0x2c], 0xc8
jne 0x40db1f
mov dword [ebp - 0x24], 0x100
mov byte [ebp - 0x27c], bl
push 0xff
push ebx
lea eax, [ebp - 0x27b]
push eax
call fcn.00411920
add esp, 0xc
push str.COUNTRY
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x17c]
push eax
push 0xffff
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x40db1f
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x40db1f
mov dword [ebp - 0x3c], 1
push 3
lea eax, [ebp - 0x17c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
push 0x42f5bc
push ebx
call fcn.0040e911
add esp, 0xc
test eax, eax
je 0x40db1f
push dword [ebp + 0xc]
push str.Save_Country_Code__s_after_GetCountry__
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x27c]
push eax
call fcn.0040f1c7
add esp, 0x10
or dword [ebp - 4], 0xffffffff
call fcn.0040db2f
mov eax, dword [ebp - 0x3c]
jmp 0x40db5c
xor eax, eax
call fcn.00410e2f
ret