Function at 0x1002aed0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ba5c
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x648], ecx
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.10054b00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x644], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10054b00
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x631], cl
lea ecx, [ebp - 0x631]
call fcn.10029000
push eax
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002afa0
mov dword [ebp - 0x644], 1
jmp 0x1002b165
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.10054b00
add esp, 0xc
push str.Uninst.exe
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002b136
push 4
lea ecx, [ebp - 0x630]
call fcn.100062d0
lea ecx, [ebp - 0x630]
call fcn.10002d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x638]
call fcn.10002cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x638]
push edx
call fcn.1002bfa0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x638]
call fcn.10003140
push 4
lea ecx, [ebp - 0x62c]
call fcn.100062d0
lea ecx, [ebp - 0x62c]
call fcn.10002d70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x63c]
call fcn.10002cc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x63c]
push edx
call fcn.1002bfa0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x63c]
call fcn.10003140
mov dword [ebp - 0x640], 1
lea ecx, [ebp - 0x630]
call fcn.10004f60
movzx eax, al
test eax, eax
jne 0x1002b0e9
lea ecx, [ebp - 0x62c]
call fcn.10004f60
movzx ecx, al
test ecx, ecx
jne 0x1002b0e9
lea ecx, [ebp - 0x630]
call fcn.100034b0
push eax
lea ecx, [ebp - 0x62c]
call fcn.100034b0
push eax
call fcn.10003dc0
add esp, 8
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jge 0x1002b115
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x62c]
call fcn.10003140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.10003140
jmp 0x1002b165
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x62c]
call fcn.10003140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.10003140
push 0
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1002b15d
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
jne 0x1002af42
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret