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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb0
mov eax, dword [0x10090014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xc6c], ecx
mov dword [ebp - 0xc90], 0
mov dword [ebp - 0xc84], 0
mov dword [ebp - 0xc88], 0
mov dword [ebp - 0xc8c], 0
xor eax, eax
mov word [ebp - 0xc34], ax
push 0x206
push 0
lea ecx, [ebp - 0xc32]
push ecx
call fcn.100191c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x824], dx
push 0x206
push 0
lea eax, [ebp - 0x822]
push eax
call fcn.100191c0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x61c], cx
push 0x206
push 0
lea edx, [ebp - 0x61a]
push edx
call fcn.100191c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa2c], ax
push 0x206
push 0
lea ecx, [ebp - 0xa2a]
push ecx
call fcn.100191c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.100191c0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x414], cx
push 0x206
push 0
lea edx, [ebp - 0x412]
push edx
call fcn.100191c0
add esp, 0xc
mov dword [ebp - 0xca0], 0
mov dword [ebp - 0xc9c], 0
push 0
push 0x1a
lea eax, [ebp - 0xc34]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xc34]
mov dword [ebp - 0xc7c], ecx
lea edx, [ebp - 0x20c]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0xc48]
mov dword [ebp - 0xca4], eax
mov ecx, dword [ebp - 0xc7c]
mov dx, word [ecx]
mov word [ebp - 0xc42], dx
mov eax, dword [ebp - 0xc48]
mov cx, word [ebp - 0xc42]
mov word [eax], cx
mov edx, dword [ebp - 0xc7c]
add edx, 2
mov dword [ebp - 0xc7c], edx
mov eax, dword [ebp - 0xc48]
add eax, 2
mov dword [ebp - 0xc48], eax
cmp word [ebp - 0xc42], 0
jne 0x10008ee7
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xc40], ecx
mov edx, dword [ebp - 0xc40]
add edx, 2
mov dword [ebp - 0xc94], edx
mov eax, dword [ebp - 0xc40]
mov cx, word [eax]
mov word [ebp - 0xc62], cx
add dword [ebp - 0xc40], 2
cmp word [ebp - 0xc62], 0
jne 0x10008f4a
mov edx, dword [ebp - 0xc40]
sub edx, dword [ebp - 0xc94]
sar edx, 1
mov dword [ebp - 0xc98], edx
mov eax, dword [ebp - 0xc98]
mov dword [ebp - 0xc9c], eax
mov dword [ebp - 0xc78], 0
push 0x5c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10009660
add esp, 8
mov dword [ebp - 0xc78], eax
cmp dword [ebp - 0xc78], 0
jne 0x10008fc5
mov ecx, dword [ebp - 0xc6c]
call fcn.10008a10
jmp 0x10009314
xor edx, edx
mov eax, dword [ebp - 0xc78]
mov word [eax], dx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xc74], ecx
lea edx, [ebp - 0x824]
mov dword [ebp - 0xc4c], edx
mov eax, dword [ebp - 0xc4c]
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xc74]
mov dx, word [ecx]
mov word [ebp - 0xc36], dx
mov eax, dword [ebp - 0xc4c]
mov cx, word [ebp - 0xc36]
mov word [eax], cx
mov edx, dword [ebp - 0xc74]
add edx, 2
mov dword [ebp - 0xc74], edx
mov eax, dword [ebp - 0xc4c]
add eax, 2
mov dword [ebp - 0xc4c], eax
cmp word [ebp - 0xc36], 0
jne 0x10008ff4
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov dword [ebp - 0xc50], ecx
mov edx, dword [ebp - 0xc50]
mov ax, word [edx + 2]
mov word [ebp - 0xc64], ax
add dword [ebp - 0xc50], 2
cmp word [ebp - 0xc64], 0
jne 0x1000904b
mov edi, dword [ebp - 0xc50]
mov ecx, dword [str.Local]
mov dword [edi], ecx
mov edx, dword [0x10075a1c]
mov dword [edi + 4], edx
mov eax, dword [0x10075a20]
mov dword [edi + 8], eax
mov cx, word [0x10075a24]
mov word [edi + 0xc], cx
lea edx, [ebp - 0x824]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100090b2
mov dword [ebp - 0xc84], 1
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xc70], eax
lea ecx, [ebp - 0x61c]
mov dword [ebp - 0xc54], ecx
mov edx, dword [ebp - 0xc54]
mov dword [ebp - 0xcac], edx
mov eax, dword [ebp - 0xc70]
mov cx, word [eax]
mov word [ebp - 0xc38], cx
mov edx, dword [ebp - 0xc54]
mov ax, word [ebp - 0xc38]
mov word [edx], ax
mov ecx, dword [ebp - 0xc70]
add ecx, 2
mov dword [ebp - 0xc70], ecx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
cmp word [ebp - 0xc38], 0
jne 0x100090d6
lea eax, [ebp - 0x61c]
add eax, 0xfffffffe
mov dword [ebp - 0xc58], eax
mov ecx, dword [ebp - 0xc58]
mov dx, word [ecx + 2]
mov word [ebp - 0xc66], dx
add dword [ebp - 0xc58], 2
cmp word [ebp - 0xc66], 0
jne 0x1000912d
mov edi, dword [ebp - 0xc58]
mov eax, dword [0x10075a28]
mov dword [edi], eax
mov ecx, dword [0x10075a2c]
mov dword [edi + 4], ecx
mov edx, dword [0x10075a30]
mov dword [edi + 8], edx
mov eax, dword [0x10075a34]
mov dword [edi + 0xc], eax
mov ecx, dword [0x10075a38]
mov dword [edi + 0x10], ecx
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000919a
mov dword [ebp - 0xc88], 1
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xc80], eax
lea ecx, [ebp - 0xa2c]
mov dword [ebp - 0xc5c], ecx
mov edx, dword [ebp - 0xc5c]
mov dword [ebp - 0xcb0], edx
mov eax, dword [ebp - 0xc80]
mov cx, word [eax]
mov word [ebp - 0xc3a], cx
mov edx, dword [ebp - 0xc5c]
mov ax, word [ebp - 0xc3a]
mov word [edx], ax
mov ecx, dword [ebp - 0xc80]
add ecx, 2
mov dword [ebp - 0xc80], ecx
mov edx, dword [ebp - 0xc5c]
add edx, 2
mov dword [ebp - 0xc5c], edx
cmp word [ebp - 0xc3a], 0
jne 0x100091be
lea eax, [ebp - 0xa2c]
add eax, 0xfffffffe
mov dword [ebp - 0xc60], eax
mov ecx, dword [ebp - 0xc60]
mov dx, word [ecx + 2]
mov word [ebp - 0xc68], dx
add dword [ebp - 0xc60], 2
cmp word [ebp - 0xc68], 0
jne 0x10009215
mov edi, dword [ebp - 0xc60]
mov eax, dword [0x10075a3c]
mov dword [edi], eax
mov ecx, dword [0x10075a40]
mov dword [edi + 4], ecx
mov edx, dword [0x10075a44]
mov dword [edi + 8], edx
mov eax, dword [0x10075a48]
mov dword [edi + 0xc], eax
mov cx, word [0x10075a4c]
mov word [edi + 0x10], cx
lea edx, [ebp - 0xa2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009284
mov dword [ebp - 0xc8c], 1
cmp dword [ebp - 0xc84], 0
je 0x100092a9
cmp dword [ebp - 0xc88], 0
je 0x100092a9
cmp dword [ebp - 0xc8c], 0
je 0x100092a9
mov dword [ebp - 0xc90], 1
cmp dword [ebp - 0xc90], 0
je 0x10009309
push str.Something
lea eax, [ebp - 0x61c]
push eax
push 0x10075a64
lea ecx, [ebp - 0x414]
push ecx
call fcn.10008820
add esp, 0x10
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100092f2
lea eax, [ebp - 0x414]
push eax
call fcn.1000e475
add esp, 4
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0xc6c]
add ecx, 0x1c
call fcn.10001650
jmp 0x10009314
mov ecx, dword [ebp - 0xc6c]
call fcn.10008a10
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a6d9
mov esp, ebp
pop ebp
ret