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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10146d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x1019646c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x420]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1006a7dc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x440], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.10012770
lea ecx, [ebp - 0x441]
mov dword [ebp - 4], 0
call fcn.10064c60
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.10018af0
mov edx, dword [ebp - 0x448]
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 0x1006a5fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x10154988
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
call fcn.10015100
push dword [ebp - 0x440]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006a650
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call fcn.1009a6d0
add esp, 8
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
push 0
cmovae eax, dword [ebp - 0x43c]
push 0xffffffffffffffff
push 0xfde9
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
call fcn.10039240
cmp dword [ebp - 0x428], 0x10
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0x43c]
cmp dword [ebp - 0x42c], 0xb
jne 0x1006a732
mov edx, str.MyDocument:
mov esi, 7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1006a6c4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1006a6b3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1006a6eb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1006a6eb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1006a6eb
cmp esi, 0xffffffff
je 0x1006a6e7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1006a6eb
xor eax, eax
jmp 0x1006a6f0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1006a732
push eax
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1006a710
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [ebp - 0x424]
push edx
push eax
call fcn.1001c180
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x424]
push eax
call fcn.10018af0
mov edx, dword [ebp - 0x424]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a765
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1006a79f
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a7f7
push edx
push ecx
call fcn.100f5c1c
add esp, 8
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x42c], 0
add edx, 0xfffffff0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1006a7dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f5f8d
mov esp, ebp
pop ebp
ret
call fcn.10119a73
int3