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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 0x68], 0
jmp 0x405e7b
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x42d090], 0
je 0x405e9f
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x42d090]
cmp eax, dword [ebp + 8]
jne 0x405e9d
jmp 0x405e9f
jmp 0x405e72
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x42d090], 0
jne 0x405eb8
mov eax, 0x42975c
jmp 0x406119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
push 0x4298e4
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 0x405fef
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 sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
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 0x405fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405fd7
mov ecx, dword [ebp - 0x68]
shl ecx, 4
cmp dword [ecx + 0x42d09c], 0
je 0x405fc6
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [eax + 0x42d09c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405fac
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x42d09c]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [ebp - 0x6c]
mov dword [edx + 0x42d09c], eax
jmp 0x405fc4
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x405fd5
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x42d09c], ecx
jmp 0x405fef
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
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 + 0x42d09c], 0
je 0x406019
mov eax, dword [ebp - 0x68]
shl eax, 4
mov eax, dword [eax + 0x42d09c]
jmp 0x406119
mov ecx, dword [ebp - 0x68]
shl ecx, 4
mov edx, dword [ecx + 0x42d094]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x68]
shl eax, 4
cmp dword [eax + 0x42d098], 0
je 0x406053
call fcn.00405df0
cmp eax, dword [0x42a294]
jne 0x406053
mov ecx, dword [ebp - 0x68]
shl ecx, 4
mov edx, dword [ecx + 0x42d098]
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 sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [ebp - 0xc4]
mov dword [eax + 0x42d09c], ecx
cmp dword [0x42d08c], 0xffffffff
jne 0x4060e2
mov dword [0x42d08c], 0
push 0x1f
lea edx, [ebp - 0xb0]
push edx
push 0x1004
movzx eax, word [0x42d454]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4060e2
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
mov dword [0x42d08c], eax
mov edx, dword [ebp - 0x70]
add edx, 1
push edx
mov eax, dword [ebp - 0x68]
shl eax, 4
mov ecx, dword [eax + 0x42d09c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0
mov ecx, dword [0x42d08c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [edx + 0x42d09c]
mov esp, ebp
pop ebp
ret