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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101075bd
mov eax, dword fs:[0]
push eax
mov eax, 0x1e68
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e2a0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x10118b28
push dword [edi]
push eax
call esi
cmp dword [edi + 8], 0
je 0x10065f36
push 0x800
lea eax, [ebp - 0xe70]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0xe70]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1670]
push 0
push eax
call fcn.1008e2a0
lea eax, [ebp - 0x640]
push eax
call fcn.1004b6c0
push 0x1011ccb4
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push eax
call fcn.10065af0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x10065ea5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe70]
push eax
lea eax, [ebp - 0x1670]
push eax
call esi
lea ecx, [ebp - 0x658]
call fcn.10029430
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
call fcn.10029430
lea eax, [ebp - 0x640]
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x10065ef1
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x1670]
push ecx
push 0
lea ecx, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.100663d0
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.10029430
test esi, esi
je 0x10066250
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [edi + 0xc], 0
je 0x10066087
push 0x208
lea eax, [ebp - 0x878]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x878]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x640]
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10065f80
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x640]
call fcn.10029430
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10065fb9
lea eax, [ebp - 0x878]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1670]
push 0
push eax
call fcn.1008e2a0
lea eax, [ebp - 0x658]
push eax
call fcn.1004b6c0
push 0x1011ccb4
push eax
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 2
push eax
call fcn.10065af0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x10065ffc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x1670]
push eax
call esi
lea ecx, [ebp - 0x640]
call fcn.10029430
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.10029430
lea eax, [ebp - 0x640]
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x10066048
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x1670]
push ecx
push 0
lea ecx, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.100663d0
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.10029430
test esi, esi
je 0x10066250
cmp dword [edi + 0x10], 0
je 0x10066269
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x640]
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x100660d1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x640]
call fcn.10029430
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006610a
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e70]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
call fcn.100081d0
mov ecx, eax
test ecx, ecx
je 0x10066289
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e74], eax
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 4
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x1006615f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1e74]
push 0x1011ccc0
push eax
call fcn.10007f10
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x640]
call fcn.10029430
push dword [ebp - 0x1e74]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x1e70]
push eax
call esi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x628]
push str.Uninstall.exe
push dword [edi]
push eax
call esi
lea eax, [ebp - 0x670]
push eax
call fcn.1004b6c0
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x100661e0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1e74]
push 0x1011ccd4
push eax
call fcn.10007f10
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x670]
call fcn.10029430
mov esi, dword [ebp - 0x1e74]
lea eax, [ebp - 0x628]
push 1
push 0
push eax
lea eax, [ebp - 0x1e70]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.100663d0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x10066254
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10066250
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x1006626e
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10066269
mov ecx, dword [esi]
push esi
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100076a0
int3