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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
mov dword [ebp + 0x70], 0
jmp 0x40533d
mov eax, dword [ebp + 0x70]
add eax, 1
mov dword [ebp + 0x70], eax
mov ecx, dword [ebp + 0x70]
shl ecx, 4
cmp dword [ecx + 0x436090], 0
je 0x405361
mov edx, dword [ebp + 0x70]
shl edx, 4
mov eax, dword [edx + 0x436090]
cmp eax, dword [ebp + 0x7c]
jne 0x40535f
jmp 0x405361
jmp 0x405334
mov ecx, dword [ebp + 0x70]
shl ecx, 4
cmp dword [ecx + 0x436090], 0
jne 0x40537a
mov eax, 0x4317c4
jmp 0x4055b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x4c], eax
mov edx, dword [ebp + 0x7c]
push edx
push str.SfxString_d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405497
mov eax, dword [ebp + 0x68]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eaf5
add esp, 4
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x6c], eax
mov ecx, dword [ebp + 0x68]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x6c]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp + 0x68]
ja 0x405485
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405485
mov ecx, dword [ebp + 0x70]
shl ecx, 4
cmp dword [ecx + 0x43609c], 0
je 0x405474
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x70]
shl eax, 4
mov ecx, dword [eax + 0x43609c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405460
mov edx, dword [ebp + 0x70]
shl edx, 4
mov eax, dword [edx + 0x43609c]
mov dword [ebp + 0x58], eax
push 2
mov ecx, dword [ebp + 0x58]
push ecx
call fcn.0042eae2
add esp, 8
mov edx, dword [ebp + 0x70]
shl edx, 4
mov eax, dword [ebp + 0x6c]
mov dword [edx + 0x43609c], eax
jmp 0x405472
mov ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x54], ecx
mov edx, dword [ebp + 0x54]
push edx
call fcn.0042eaf0
add esp, 4
jmp 0x405483
mov eax, dword [ebp + 0x70]
shl eax, 4
mov ecx, dword [ebp + 0x6c]
mov dword [eax + 0x43609c], ecx
jmp 0x405497
mov edx, dword [ebp + 0x6c]
mov dword [ebp + 0x50], edx
mov eax, dword [ebp + 0x50]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x70]
shl edx, 4
cmp dword [edx + 0x43609c], 0
je 0x4054c1
mov eax, dword [ebp + 0x70]
shl eax, 4
mov eax, dword [eax + 0x43609c]
jmp 0x4055b5
mov ecx, dword [ebp + 0x70]
shl ecx, 4
mov edx, dword [ecx + 0x436094]
mov dword [ebp + 0x60], edx
mov eax, dword [ebp + 0x70]
shl eax, 4
cmp dword [eax + 0x436098], 0
je 0x4054fb
call fcn.00405e10
cmp eax, dword [0x4319dc]
jne 0x4054fb
mov ecx, dword [ebp + 0x70]
shl ecx, 4
mov edx, dword [ecx + 0x436098]
mov dword [ebp + 0x60], edx
mov eax, dword [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x64]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eaf5
add esp, 4
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x70]
shl eax, 4
mov ecx, dword [ebp + 0x48]
mov dword [eax + 0x43609c], ecx
cmp dword [0x43608c], 0xffffffff
jne 0x40557e
mov dword [0x43608c], 0
push 0x1f
lea edx, [ebp - 0x50]
push edx
push 0x1004
movzx eax, word [0x436514]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40557e
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [0x43608c], eax
mov edx, dword [ebp + 0x64]
add edx, 1
push edx
mov eax, dword [ebp + 0x70]
shl eax, 4
mov ecx, dword [eax + 0x43609c]
push ecx
mov edx, dword [ebp + 0x64]
push edx
mov eax, dword [ebp + 0x60]
push eax
push 0
mov ecx, dword [0x43608c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 0x70]
shl edx, 4
mov eax, dword [edx + 0x43609c]
add ebp, 0x74
mov esp, ebp
pop ebp
ret