Function at 0x407fb0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 0x68], 0
jmp 0x407fcb
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x4360c0], 0
je 0x407fef
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x4360c0]
cmp eax, dword [ebp + 8]
jne 0x407fed
jmp 0x407fef
jmp 0x407fc2
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x4360c0], 0
jne 0x408008
mov eax, 0x42f938
jmp 0x408268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
push str.SfxString_d
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40813f
mov eax, dword [ebp - 8]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425585
add esp, 4
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 8]
ja 0x408127
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408127
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x4360cc], 0
je 0x408116
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [eax + 0x4360cc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4080fc
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x4360cc]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0042552b
add esp, 4
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x4360cc], eax
jmp 0x408114
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0042552b
add esp, 4
jmp 0x408125
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x4360cc], ecx
jmp 0x40813f
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.0042552b
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x68]
shl edx, 4
cmp dword [edx + 0x4360cc], 0
je 0x408169
mov eax, dword [ebp - 0x68]
shl eax, 4
mov eax, dword [eax + 0x4360cc]
jmp 0x408268
mov ecx, dword [ebp - 0x68]
shl ecx, 4
mov edx, dword [ecx + 0x4360c4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x68]
shl eax, 4
cmp dword [eax + 0x4360c8], 0
je 0x4081a3
call fcn.00407f40
cmp eax, dword [0x4308b0]
jne 0x4081a3
mov ecx, dword [ebp - 0x68]
shl ecx, 4
mov edx, dword [ecx + 0x4360c8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425585
add esp, 4
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp - 0xc4]
mov dword [eax + 0x4360cc], ecx
cmp dword [0x4360bc], 0xffffffff
jne 0x408231
mov dword [0x4360bc], 0
push 0x1f
lea edx, [ebp - 0xb0]
push edx
push 0x1004
movzx eax, word [0x4371ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x408231
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00426cbd
add esp, 4
mov dword [0x4360bc], eax
mov edx, dword [ebp - 0x70]
add edx, 1
push edx
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [eax + 0x4360cc]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0
mov ecx, dword [0x4360bc]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x4360cc]
mov esp, ebp
pop ebp
ret