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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10151b8c
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101a154c]
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 0x1006a6dc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x440], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.10012f50
lea ecx, [ebp - 0x441]
mov dword [ebp - 4], 0
call fcn.10064b30
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.100190c0
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 0x1006a4fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1015f9a8
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
call fcn.10015880
push dword [ebp - 0x440]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006a550
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call fcn.1009b4d0
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.10039780
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 0x1006a632
mov edx, str.MyDocument:
mov esi, 7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1006a5c4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1006a5b3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1006a5eb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1006a5eb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1006a5eb
cmp esi, 0xffffffff
je 0x1006a5e7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1006a5eb
xor eax, eax
jmp 0x1006a5f0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1006a632
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 0x1006a610
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [ebp - 0x424]
push edx
push eax
call fcn.1001c8c0
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x424]
push eax
call fcn.100190c0
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 0x1006a665
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 0x1006a69f
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a695
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a6f7
push edx
push ecx
call fcn.100f8c70
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 0x1006a6dc
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.100f8fe1
mov esp, ebp
pop ebp
ret
call fcn.10124793
int3