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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x102159fc]
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.101640e0
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.101640e0
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.101640e0
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.101640e0
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.101640e0
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.101640e0
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 0x1000dc62
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.101642ed
add esp, 8
test eax, eax
je 0x1000de7d
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 0x1000dca0
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000dcc1
mov eax, dword [str.Local]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10190658]
mov dword [ecx + 4], eax
mov eax, dword [0x1019065c]
mov dword [ecx + 8], eax
mov ax, word [0x10190660]
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 0x1000dd11
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000dd32
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10190668]
mov dword [ecx + 4], eax
mov eax, dword [0x1019066c]
mov dword [ecx + 8], eax
mov eax, dword [0x10190670]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10190674]
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 0x1000dd80
lea ecx, [ebp - 0xa2c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000dda1
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x1019067c]
mov dword [ecx + 4], eax
mov eax, dword [0x10190680]
mov dword [ecx + 8], eax
mov eax, dword [0x10190684]
mov dword [ecx + 0xc], eax
mov ax, word [0x10190688]
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 0x1000de7d
test ebx, ebx
je 0x1000de7d
test edi, edi
je 0x1000de7d
push str.BKcth
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x1019068c
push eax
call fcn.100073c0
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x1000de3e
lea eax, [ebp - 0x414]
push eax
call fcn.10150f75
add esp, 4
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000de47
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xc38]
push eax
add ecx, 0x1c
call fcn.10001270
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014bb85
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc38]
call fcn.1000d3e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014bb85
mov esp, ebp
pop ebp
ret