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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c0de
mov eax, dword fs:[0]
push eax
sub esp, 0xe4c
mov eax, dword [0x10051114]
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 - 0x628]
mov dword [ebp - 0xe54], 0
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x628]
push str.halowp.exe
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or ebx, 0xffffffff
cmp dword [ebp + 8], 0
je 0x1000acbb
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0xe48]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.100214a0
add esp, 0xc
call fcn.10002f00
mov ecx, eax
test ecx, ecx
je 0x1000aed5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe4c], eax
push 0x1003f640
lea ecx, [ebp - 0xe4c]
mov dword [ebp - 4], 0
call fcn.100026b0
test al, al
jne 0x1000ab64
push 8
push 0x1003f640
lea ecx, [ebp - 0xe4c]
call fcn.10003330
mov edi, dword [ebp - 0xe4c]
mov dword [ebp - 4], 2
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x1000ab83
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1000ab99
call fcn.10002f00
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1000aedf
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [edi - 0xc]
mov dword [ebp - 0xe54], 1
mov dword [ebp - 0xe58], ebx
lea esi, [eax + 0x10]
lea edx, [ebx + 4]
mov dword [ebp - 0xe50], esi
test edx, edx
js 0x1000aee9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1000abe8
push edx
lea ecx, [ebp - 0xe50]
call fcn.100031f0
mov esi, dword [ebp - 0xe50]
add ebx, ebx
push ebx
push edi
push ebx
push esi
call fcn.10003ae0
lea eax, [ebx + esi]
add esp, 0x10
test eax, eax
jne 0x1000ac0f
call fcn.100231c6
mov dword [eax], 0x16
call fcn.100230ec
jmp 0x1000ac1b
movq xmm0, qword [0x1003f654]
movq qword [eax], xmm0
mov eax, dword [ebp - 0xe58]
add eax, 4
cmp eax, dword [esi - 8]
jg 0x1000aee9
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0xe48]
push esi
push eax
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ac69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xa38]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
jne 0x1000ac9d
push eax
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.10002850
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea edx, [edi - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000acbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x1003f640
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1000ad1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x1003f660
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1000ad5b
push eax
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push 0x1003f640
call fcn.10002850
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x830]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10002f00
mov ecx, eax
test ecx, ecx
je 0x1000aef3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe50], eax
push 0x1003f640
push 0x1003f640
lea eax, [ebp - 0xe50]
mov dword [ebp - 4], 3
push 0x1003f67c
push eax
call fcn.10002c70
mov edi, dword [ebp - 0xe50]
lea eax, [ebp - 0x830]
add esp, 0x10
push edi
push eax
call esi
lea eax, [ebp - 0x830]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
jne 0x1000ae96
push 0x208
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x628]
push str.Uninstall.exe
push eax
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.10002f00
mov ecx, eax
test ecx, ecx
je 0x1000aefd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe4c], eax
push 0x1003f640
lea eax, [ebp - 0xe4c]
mov byte [ebp - 4], 4
push 0x1003f694
push eax
call fcn.10002c70
mov esi, dword [ebp - 0xe4c]
lea eax, [ebp - 0xc40]
push 1
push 0
push eax
lea eax, [ebp - 0x830]
push eax
push 0
lea eax, [ebp - 0xc40]
push eax
push esi
call fcn.10002850
add esp, 0x28
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ae96
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000aeb2
mov ecx, dword [edi]
push edi
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.100178b1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10002690
push 0x80004005
call fcn.10002690
push 0x80070057
call fcn.10002690
push 0x80004005
call fcn.10002690
push 0x80004005
call fcn.10002690
int3