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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155afe
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x101a154c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10067d92
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.10012f50
lea ecx, [ebp - 0x225]
mov dword [ebp - 4], 0
call fcn.100619b0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.100190c0
mov edx, dword [ebp - 0x224]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067bcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10067c07
push ecx
mov esi, esp
mov dword [ebp - 0x230], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.10019b20
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.10066350
add esp, 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.10070f00
add esp, 4
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
je 0x10067d3c
push 0x10161eac
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100191f0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 4
mov dword [ebp - 0x224], 0
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x10067c73
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10067c89
call fcn.10017d20
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10067dae
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 1
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x224]
push ecx
push eax
call fcn.10019b90
add esp, 0x14
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x220]
push eax
call fcn.100190c0
mov edx, dword [ebp - 0x224]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067cf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067d14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.10019b20
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.10066350
add esp, 4
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.100190c0
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10067d8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f8fe1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100142b0
int3