Function at 0x1002412e
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 [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x50
mov eax, 0x100485cb
call fcn.100317b2
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.10007fb2
test eax, eax
je 0x100241a2
cmp dword [ebp - 0x18], edi
je 0x1002419b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10024504
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024222
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10024222
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.10031310
add esp, 0xc
push esi
push 0x104
lea eax, [ebp + 0x208]
push eax
call fcn.10009101
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1004ed3c
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.10007fb2
test eax, eax
je 0x10024258
cmp dword [ebp - 0x14], edi
je 0x1002418d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002418d
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.10007fe8
cmp eax, edi
jne 0x10024485
cmp byte [ebp - 0x58], 0x25
jne 0x10024485
mov eax, dword [ebp - 0x57]
cmp eax, edi
je 0x10024485
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.10031154
mov ebx, eax
pop ecx
mov dword [ebp - 0x28], ebx
cmp ebx, edi
je 0x10024302
push esi
push ebx
lea ecx, [ebp - 0x18]
call fcn.10007fe8
test eax, eax
jne 0x10024305
xor ecx, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x57]
jae 0x10024404
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 0x10024319
mov eax, ecx
imul eax, eax, 0x4d
add eax, edx
lea eax, [ebx + eax*4 + 8]
xor dword [eax], esi
inc edx
jmp 0x100242ed
mov dword [ebp - 0x20], edi
cmp ebx, edi
je 0x10024485
push ebx
call fcn.10031889
pop ecx
jmp 0x10024485
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.10031310
lea eax, [ebp + 0x208]
push eax
lea eax, [ebx + 8]
push eax
call fcn.1000ff2c
add esp, 0x14
cmp eax, edi
mov eax, dword [ebx]
je 0x1002437d
cmp eax, edi
je 0x10024366
cmp eax, 4
je 0x10024366
lea eax, [ebp + 0x208]
jmp 0x100243b3
lea eax, [ebp + 0x208]
push eax
push 0x12c
lea eax, [ebx + 8]
push eax
call fcn.10012a0b
jmp 0x100243ca
cmp eax, edi
je 0x100243ca
cmp eax, 4
je 0x100243ca
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.10031310
add esp, 0xc
lea eax, [ebx + 8]
push eax
push 0x208
lea eax, [ebp]
push eax
call fcn.10012a0b
lea eax, [ebp]
push eax
push 0x1004ad40
lea eax, [ebx + 8]
push 0x12c
push eax
call fcn.1000e4ec
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 0x100243f6
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 0x100243dd
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
jmp 0x100242d2
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
call fcn.10008051
push edi
push 0x25
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10008022
mov eax, dword [ebp - 0x57]
imul eax, eax, 0x134
push edi
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.10008022
push ebx
call fcn.10031889
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1002444b
call fcn.10007f88
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
call fcn.10023585
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3b], eax
call fcn.10008051
push edi
push 0x25
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10008022
mov dword [ebp - 0x24], 1
jmp 0x10024485
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], edi
je 0x10024498
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x14], edi
je 0x100244a5
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x20], 1
jne 0x100244ed
push dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
push dword [ebp - 0x2c]
call ebx
push 0x1004aa28
push 0x1004ed0c
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [ebp - 0x14], edi
je 0x100244da
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x1002419b
push dword [ebp - 0x18]
call esi
jmp 0x1002419b
cmp dword [ebp - 0x14], edi
je 0x100244f7
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x10024501
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.10031770
add ebp, 0x414
leave
ret 8