Function at 0x10008ee0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1738
call fcn.100201c0
mov eax, dword [0x1005545c]
xor eax, esp
mov dword [esp + 0x1734], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x12c]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x18], edi
call fcn.10023f50
add esp, 0xc
lea eax, [esp + 0x128]
push 0x104
push eax
push dword [0x10058d58]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x128]
push eax
call esi
lea eax, [esp + 0x128]
push eax
call esi
lea edx, [esp + 0x128]
lea ecx, [edi + 0x34]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10008f60
sub edx, esi
lea eax, [esp + 0x128]
sar edx, 1
push edx
push eax
call fcn.100018b0
push 0x208
lea eax, [esp + 0x334]
push 0
push eax
call fcn.10023f50
add esp, 0xc
lea eax, [esp + 0x330]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.navplugin
lea eax, [esp + 0x334]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x330]
lea ecx, [edi + 0x3c]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10008fd0
sub edx, esi
lea eax, [esp + 0x330]
sar edx, 1
push edx
push eax
call fcn.100018b0
push 0x800
lea eax, [esp + 0xf3c]
push 0
push eax
call fcn.10023f50
push 0x800
lea eax, [esp + 0x748]
push 0
push eax
call fcn.10023f50
add esp, 0x18
lea eax, [esp + 0xf38]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [esp + 0x2e]
push 0
push eax
call fcn.10023f50
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
nop word [eax + eax]
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0x28], ax
lea eax, [esp + 0x10]
push eax
movaps xmmword [esp + 0x14], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [esp + 0x53c]
push 0
push eax
call fcn.10023f50
movzx eax, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push eax
movzx eax, byte [esp + 0x34]
push eax
movzx eax, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push eax
movzx eax, byte [esp + 0x40]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x570]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.1000a690
lea eax, [esp + 0x578]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100090e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x53c]
push eax
lea eax, [esp + 0x30]
push 0x80
push eax
call fcn.100313f2
add esp, 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xf3c]
push eax
lea eax, [esp + 0x740]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [esp + 0x73c]
push 0x400
push eax
call fcn.100313fd
add esp, 0xc
lea eax, [esp + 0x738]
push eax
call edi
test eax, eax
je 0x10009178
inc esi
cmp esi, 0xa
jl 0x10009050
push str.get_temp_dir_fail_
call fcn.10001490
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x1734]
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x738]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009182
sub ecx, edx
lea eax, [esp + 0x738]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x10]
push eax
add ecx, 0x38
call fcn.100018b0
mov ecx, dword [esp + 0x173c]
pop edi
pop esi
xor ecx, esp
call fcn.1001f332
mov esp, ebp
pop ebp
ret