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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x10088084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0xc38], ecx
lea eax, [ebp - 0xc34]
xor ebx, ebx
push edi
push eax
call fcn.10045420
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.10045420
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.10045420
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.10045420
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10045420
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.10045420
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc34]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x100088d2
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1004557a
add esp, 8
test eax, eax
je 0x10008aed
xor ecx, ecx
mov word [eax], cx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x826], ax
test ax, ax
jne 0x10008910
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10008931
mov eax, dword [str.Local]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x1006e4c0]
mov dword [ecx + 4], eax
mov eax, dword [0x1006e4c4]
mov dword [ecx + 8], eax
mov ax, word [0x1006e4c8]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, ebx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc3c], eax
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x61e], ax
test ax, ax
jne 0x10008981
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100089a2
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x1006e4d0]
mov dword [ecx + 4], eax
mov eax, dword [0x1006e4d4]
mov dword [ecx + 8], eax
mov eax, dword [0x1006e4d8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1006e4dc]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
mov eax, 1
cmovne ebx, eax
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa2e], ax
test ax, ax
jne 0x100089f0
lea ecx, [ebp - 0xa2c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10008a11
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x1006e4e4]
mov dword [ecx + 4], eax
mov eax, dword [0x1006e4e8]
mov dword [ecx + 8], eax
mov eax, dword [0x1006e4ec]
mov dword [ecx + 0xc], eax
mov ax, word [0x1006e4f0]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xa2c]
push eax
call esi
test eax, eax
mov eax, 1
cmovne edi, eax
cmp dword [ebp - 0xc3c], 0
je 0x10008aed
test ebx, ebx
je 0x10008aed
test edi, edi
je 0x10008aed
push 0x1006e4f4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x1006e4fc
push eax
call fcn.10008db0
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x10008aae
lea eax, [ebp - 0x414]
push eax
call fcn.1001139c
add esp, 4
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008ab7
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xc38]
push eax
add ecx, 0x1c
call fcn.10006c20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc38]
call fcn.100084a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016f2c
mov esp, ebp
pop ebp
ret