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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101854be
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x101dd594]
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 0x1006e202
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.10016670
lea ecx, [ebp - 0x225]
mov dword [ebp - 4], 0
call fcn.100679a0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1001cb20
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.1001c9f0
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 0x1006e03f
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 0x1006e077
push ecx
mov esi, esp
mov dword [ebp - 0x230], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.1001d450
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.1006c7c0
add esp, 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.10077c80
add esp, 4
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
je 0x1006e1ac
push 0x1019606c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1001cb20
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 0x1006e0e3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1006e0f9
call fcn.1001b540
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1006e21e
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.1001d4c0
add esp, 0x14
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x220]
push eax
call fcn.1001c9f0
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 0x1006e163
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 0x1006e184
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.1001d450
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.1006c7c0
add esp, 4
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.1001c9f0
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 0x1006e1db
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 0x1006e1fd
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.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
int3