Function at 0x10014789
Capabilities:
Check if file exists
Delete file
Delete registry value
Move file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x50
mov eax, 0x100410cf
call fcn.1001a8b2
mov eax, dword [ebp + 0x41c]
mov esi, dword [ebp + 0x420]
xor edi, edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], edi
push edi
push edi
mov ebx, 0x80
push ebx
push 3
push 1
push 0x120089
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.10001063
test eax, eax
je 0x100147fd
cmp dword [ebp - 0x18], edi
je 0x100147f6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10014b5f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001487d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001487d
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push esi
push 0x104
lea eax, [ebp + 0x208]
push eax
call fcn.100054b8
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1004634c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp + 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x14], edi
push edi
push edi
push ebx
push 2
push edi
push 0x12019f
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10001063
test eax, eax
je 0x100148b3
cmp dword [ebp - 0x14], edi
je 0x100147e8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100147e8
push 0x25
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 2
call fcn.10001099
cmp eax, edi
jne 0x10014ae0
cmp byte [ebp - 0x58], 0x25
jne 0x10014ae0
mov eax, dword [ebp - 0x57]
cmp eax, edi
je 0x10014ae0
mov esi, eax
xor ecx, ecx
imul esi, esi, 0x134
mov edx, 0x134
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001a311
mov ebx, eax
pop ecx
mov dword [ebp - 0x28], ebx
cmp ebx, edi
je 0x1001495d
push esi
push ebx
lea ecx, [ebp - 0x18]
call fcn.10001099
test eax, eax
jne 0x10014960
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x57]
jae 0x10014a5f
mov eax, ecx
imul eax, eax, 0x134
mov esi, dword [eax + ebx]
xor esi, dword [ebp - 0x3f]
xor esi, ecx
xor edx, edx
cmp edx, 0x4b
jge 0x10014974
mov eax, ecx
imul eax, eax, 0x4d
add eax, edx
lea eax, [ebx + eax*4 + 8]
xor dword [eax], esi
inc edx
jmp 0x10014948
mov dword [ebp - 0x20], edi
cmp ebx, edi
je 0x10014ae0
push ebx
call fcn.1001a989
pop ecx
jmp 0x10014ae0
imul ecx, ecx, 0x134
xor eax, eax
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
add ebx, ecx
call fcn.1001a410
lea eax, [ebp + 0x208]
push eax
lea eax, [ebx + 8]
push eax
call fcn.1000642d
add esp, 0x14
cmp eax, edi
mov eax, dword [ebx]
je 0x100149d8
cmp eax, edi
je 0x100149c1
cmp eax, 4
je 0x100149c1
lea eax, [ebp + 0x208]
jmp 0x10014a0e
lea eax, [ebp + 0x208]
push eax
push 0x12c
lea eax, [ebx + 8]
push eax
call fcn.10003a5d
jmp 0x10014a25
cmp eax, edi
je 0x10014a25
cmp eax, 4
je 0x10014a25
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebx + 8]
push eax
push 0x208
lea eax, [ebp]
push eax
call fcn.10003a5d
lea eax, [ebp]
push eax
push 0x10043a78
lea eax, [ebx + 8]
push 0x12c
push eax
call fcn.10005553
add esp, 0x10
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 6]
mov dword [ebx + 4], eax
xor ecx, ecx
cmp ecx, 0x4b
jge 0x10014a51
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
imul eax, eax, 0x4d
add eax, ecx
lea eax, [edx + eax*4 + 8]
xor dword [eax], esi
inc ecx
jmp 0x10014a38
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
jmp 0x1001492d
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
call fcn.10001102
push edi
push 0x25
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.100010d3
mov eax, dword [ebp - 0x57]
imul eax, eax, 0x134
push edi
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.100010d3
push ebx
call fcn.1001a989
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10014aa6
call fcn.10001039
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
call fcn.10013be0
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3b], eax
call fcn.10001102
push edi
push 0x25
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.100010d3
mov dword [ebp - 0x24], 1
jmp 0x10014ae0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], edi
je 0x10014af3
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x14], edi
je 0x10014b00
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x20], 1
jne 0x10014b48
push dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
push dword [ebp - 0x2c]
call ebx
push 0x10043874
push 0x1004631c
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [ebp - 0x14], edi
je 0x10014b35
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x100147f6
push dword [ebp - 0x18]
call esi
jmp 0x100147f6
cmp dword [ebp - 0x14], edi
je 0x10014b52
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x10014b5c
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1001a870
add ebp, 0x414
leave
ret 8