Function at 0x500c80
Capabilities:
Get common file path
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ac8b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x28]
mov ecx, 0x641cb4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], 0x641c48
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
mov ecx, 0x641cb8
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 1
mov ecx, 0x641ce0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov ecx, 0x641cf4
movsd qword [0x641ce4], xmm0
mov dword [0x641cec], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
mov ecx, 0x641cf8
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 4
mov ecx, 0x641cfc
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 5
mov ecx, 0x641d00
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 6
mov ecx, 0x641d04
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 7
mov ecx, 0x641d08
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 8
mov ecx, 0x641d0c
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 9
mov ecx, 0x641d14
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xa
mov ecx, 0x641d1c
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xb
mov ecx, 0x641d20
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xc
mov ecx, 0x641d24
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xd
mov ecx, 0x641d28
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xe
mov ecx, 0x641d2c
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xf
mov ecx, 0x641d30
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x10
xorps xmm0, xmm0
movsd qword [0x641d3c], xmm0
mov dword [0x641d44], 0
mov dword [0x641d50], 0x5f099c
mov dword [0x641d5c], 0
mov dword [0x641d60], 0
mov dword [0x641d58], 0
mov dword [0x641d54], 0
mov dword [0x641d64], 0
mov dword [0x641d68], 0xa
mov byte [ebp - 4], 0x11
mov ecx, 0x641d6c
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x12
mov ecx, 0x641cb4
push 0x587818
mov byte [0x641c5c], 0
mov dword [0x641d34], 0
mov word [0x641c5e], 1
mov byte [0x641c60], 0
mov word [0x641c68], 0
mov dword [0x641c6c], 0x7d0
mov word [0x641c90], 0x100
mov dword [0x641c9d], 0x1010000
mov dword [0x641ca1], 0x1000101
mov dword [0x641c94], 0x32
mov dword [0x641c98], 0x40600000
mov byte [0x641c9c], 1
mov dword [0x641ca5], 0
mov dword [0x641cbc], 0x493e0
mov byte [0x641cc0], 1
mov dword [0x641cc4], 0x14
mov dword [0x641c70], 2
mov dword [0x641c74], 2
mov dword [0x641cc8], 8
mov dword [0x641ccc], 0x20
mov byte [0x641cd0], 1
mov dword [0x641cac], 0x64
mov dword [0x641cb0], 0x1f6
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea eax, [ebp - 0x34]
mov byte [0x641ca9], 0
push eax
mov dword [0x641c80], 0
mov dword [0x641c84], 0
mov dword [0x641c88], 0
mov dword [0x641c8c], 0
mov word [0x641c59], 0x101
mov byte [0x641c5b], 1
mov word [0x641c78], 0
mov dword [0x641c7c], 0
mov dword [0x641c48], 0
mov byte [0x641cd1], 1
call fcn.004cf540
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
push eax
movsd qword [ebp - 0x40], xmm0
call fcn.004c2a00
movsd xmm0, qword [0x6065b0]
lea ecx, [ebp - 0x40]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [ebp - 0x50]
push eax
call fcn.00507590
push 0x104
mov ecx, 0x641cf4
movq xmm0, qword [eax]
movq qword [0x641ce4], xmm0
mov eax, dword [eax + 8]
mov dword [0x641cec], eax
mov dword [0x641cf0], 0xa00000
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x641cf4
push 0xffffffffffffffff
test eax, eax
je 0x501017
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
jmp 0x50102d
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push str.c:_temp_
mov ecx, 0x641cf4
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
mov ecx, 0x641ce0
mov dword [0x641c64], 0x2710
mov word [0x641cd2], 1
mov dword [0x641cd8], 0x409
mov byte [0x641cdc], 0
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
mov ecx, 0x641d1c
mov word [0x641d10], 0
mov byte [0x641d18], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
mov ecx, 0x641d20
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
mov ecx, 0x641d24
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x587818
mov ecx, 0x641d28
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
call fcn.00504020
call fcn.00501510
sub esp, 0x10
mov dword [ebp - 0x20], 0x733e007c
mov eax, esp
mov dword [ebp - 0x1c], 0xe5b2eac7
mov dword [ebp - 0x18], 0x6cba9684
mov ecx, 0x641d50
mov dword [ebp - 0x14], 0x4889aa94
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
call fcn.00507790
sub esp, 0x10
mov dword [ebp - 0x20], 0x3eab3bb
mov eax, esp
mov dword [ebp - 0x1c], 0xd61a46d9
mov dword [ebp - 0x18], 0x13570e9f
mov ecx, 0x641d50
mov dword [ebp - 0x14], 0x32180c60
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
call fcn.00507790
sub esp, 0x10
mov dword [ebp - 0x20], 0xca978fd5
mov eax, esp
mov dword [ebp - 0x1c], 0x70316df3
mov dword [ebp - 0x18], 0xcb3af44f
mov ecx, 0x641d50
mov dword [ebp - 0x14], 0x85db1efa
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
call fcn.00507790
sub esp, 0x10
mov dword [ebp - 0x20], 0x53c76338
mov eax, esp
mov dword [ebp - 0x1c], 0xcdce2b34
mov dword [ebp - 0x18], 0x4b8212f7
mov ecx, 0x641d50
mov dword [ebp - 0x14], 0x90a6299d
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
call fcn.00507790
sub esp, 0x10
mov dword [ebp - 0x20], 0x2c884da0
mov eax, esp
mov dword [ebp - 0x1c], 0xe513526d
mov dword [ebp - 0x18], 0xdabf2a20
mov ecx, 0x641d50
mov dword [ebp - 0x14], 0xce575108
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
call fcn.00507790
sub esp, 0x10
mov dword [ebp - 0x20], 0x9ac16664
mov dword [ebp - 0x1c], 0x721118f0
mov eax, esp
mov dword [ebp - 0x18], 0xfdee0564
mov dword [ebp - 0x14], 0xdce80305
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
mov ecx, 0x641d50
call fcn.00507790
lea eax, [ebp - 0x34]
mov dword [0x641d38], 0x10100
push eax
mov word [0x641d4c], 0
mov byte [0x641d4e], 0
mov byte [0x641ca7], 0
call fcn.004cf540
movd xmm1, dword [0x641d48]
xorps xmm2, xmm2
cvtdq2pd xmm1, xmm1
xor esi, esi
movsd xmm0, qword [0x606648]
divsd xmm1, qword [0x606570]
addsd xmm1, xmm2
addsd xmm1, xmm2
comisd xmm0, xmm1
movsd qword [ebp - 0x2c], xmm1
ja 0x50124f
comisd xmm1, xmmword [0x6065c8]
jbe 0x501254
mov esi, 1
lea eax, [ebp - 0x34]
movsd qword [ebp - 0x50], xmm2
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], 0
call fcn.004c2a00
movsd xmm0, qword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00507590
cmp byte [0x641cd2], 0
movq xmm0, qword [eax]
movq qword [0x641d3c], xmm0
mov eax, dword [eax + 8]
mov dword [0x641d44], eax
mov dword [0x641c4c], 0
mov dword [0x641c54], 0
mov byte [0x641c50], 0
mov byte [0x641c58], 0
je 0x501336
cmp byte [0x641cd3], 0
jne 0x501336
cmp byte [0x641cdc], 0
jne 0x501336
push 0xa
lea eax, [ebp - 0x24]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x501312
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
push str._4lx
push eax
call fcn.00404570
mov eax, dword [ebp - 0x28]
add esp, 0xc
jmp 0x501331
mov eax, dword [0x641a88]
push str.GetComputerLocaleID_GetLocaleInfo_failed
add eax, 0x32c
push 0x3e9
push eax
call fcn.004ec2c0
add esp, 0xc
xor eax, eax
mov dword [0x641cd8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x641c48
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret