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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a413
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x100891f4]
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
push 0x208
lea eax, [ebp - 0x830]
mov dword [ebp - 0xc50], 0
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea ecx, [ebp - 0xc45]
call fcn.10017df0
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xc45]
call fcn.10017bd0
push eax
lea ecx, [ebp - 0xc44]
call fcn.100023e0
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x100199bf
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0xc40]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10043b10
add esp, 0xc
mov eax, dword [ebp - 0xc44]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1001989b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100198b1
call fcn.100031c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10019c06
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0xc50], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0xc44]
mov dword [ebp - 0xc4c], esi
mov dword [ebp - 0xc54], eax
mov edi, dword [eax - 0xc]
lea ebx, [edi + 4]
test ebx, ebx
js 0x10019c10
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x10019906
push ebx
lea ecx, [ebp - 0xc4c]
call fcn.10003660
mov esi, dword [ebp - 0xc4c]
add edi, edi
push edi
push dword [ebp - 0xc54]
push edi
push esi
call fcn.10004190
lea eax, [edi + esi]
add esp, 0x10
test eax, eax
jne 0x10019932
call fcn.10046f8d
mov dword [eax], 0x16
call fcn.10046eb3
jmp 0x1001993e
movq xmm0, qword [str..lnk]
movq qword [eax], xmm0
cmp ebx, dword [esi - 8]
jg 0x10019c10
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0xc40]
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019983
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x100199c5
push eax
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0xc44]
call fcn.100029d0
add esp, 0x1c
jmp 0x100199c5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0xc44]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x10019a1f
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0xc44]
lea eax, [ebp - 0x218]
push eax
call esi
push str..lnk
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x10019a70
push eax
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0xc44]
call fcn.100029d0
add esp, 0x1c
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0xa38]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10019c1a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc4c], eax
mov eax, dword [ebp - 0xc44]
push eax
push eax
lea eax, [ebp - 0xc4c]
mov byte [ebp - 4], 2
push 0x1006ed68
push eax
call fcn.10002df0
mov edi, dword [ebp - 0xc4c]
lea eax, [ebp - 0xa38]
add esp, 0x10
push edi
push eax
call esi
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10019ba6
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x830]
push str.Uninst.exe
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10019c24
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc50], eax
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc50]
mov byte [ebp - 4], 3
push 0x1006ed80
push eax
call fcn.10002df0
mov esi, dword [ebp - 0xc50]
lea eax, [ebp - 0x420]
push 1
push 0
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.100029d0
add esp, 0x28
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019ba6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10019bc1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xc44]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10019be3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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.100264cc
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10002810
push 0x80070057
call fcn.10002810
push 0x80004005
call fcn.10002810
push 0x80004005
call fcn.10002810
int3