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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014adfe
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x1019646c]
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 0x10067e92
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.10012770
lea ecx, [ebp - 0x225]
mov dword [ebp - 4], 0
call fcn.10061ae0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.10018af0
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 0x10067ccf
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 0x10067d07
push ecx
mov esi, esp
mov dword [ebp - 0x230], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.10019550
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.10066450
add esp, 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.10071000
add esp, 4
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
je 0x10067e3c
push 0x10156e8c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10018c20
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 0x10067d73
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10067d89
call fcn.10017640
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10067eae
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.100195c0
add esp, 0x14
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x220]
push eax
call fcn.10018af0
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 0x10067df3
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 0x10067e14
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.10019550
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.10066450
add esp, 4
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.10018af0
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 0x10067e6b
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 0x10067e8d
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.100f5f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013b40
int3