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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 4], 0
jmp 0x40549b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 4
cmp dword [ecx + 0x435090], 0
je 0x4054bf
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [edx + 0x435090]
cmp eax, dword [ebp + 8]
jne 0x4054bd
jmp 0x4054bf
jmp 0x405492
mov ecx, dword [ebp - 4]
shl ecx, 4
cmp dword [ecx + 0x435090], 0
jne 0x4054d8
mov eax, 0x4307d4
jmp 0x405722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
push edx
push str.SfxString_d
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4055fe
mov eax, dword [ebp - 0xc]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dfa5
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 0xc]
ja 0x4055ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4055ec
mov ecx, dword [ebp - 4]
shl ecx, 4
cmp dword [ecx + 0x43509c], 0
je 0x4055db
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [eax + 0x43509c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4055c7
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [edx + 0x43509c]
mov dword [ebp - 0x1c], eax
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042df92
add esp, 8
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp - 8]
mov dword [edx + 0x43509c], eax
jmp 0x4055d9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042dfa0
add esp, 4
jmp 0x4055ea
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp - 8]
mov dword [eax + 0x43509c], ecx
jmp 0x4055fe
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0042dfa0
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 4]
shl edx, 4
cmp dword [edx + 0x43509c], 0
je 0x405628
mov eax, dword [ebp - 4]
shl eax, 4
mov eax, dword [eax + 0x43509c]
jmp 0x405722
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x435094]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
shl eax, 4
cmp dword [eax + 0x435098], 0
je 0x405662
call fcn.00405de0
cmp eax, dword [0x4309ec]
jne 0x405662
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x435098]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dfa5
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x43509c], ecx
cmp dword [0x43508c], 0xffffffff
jne 0x4056eb
mov dword [0x43508c], 0
push 0x1f
lea edx, [ebp - 0xc4]
push edx
push 0x1004
movzx eax, word [0x435514]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4056eb
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [0x43508c], eax
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [eax + 0x43509c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x43508c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [edx + 0x43509c]
mov esp, ebp
pop ebp
ret