Function at 0x40ce84
Capabilities:
Check if file exists
Delete registry key

Disassembly:
push ebp
sub esp, 0xbe0
lea ebp, [esp - 4]
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0xbe0], eax
push 0x2c
mov eax, 0x4417df
call fcn.0042baa9
xor ebx, ebx
mov edi, 0x103
push edi
lea eax, [ebp + 0xadd]
push ebx
push eax
mov dword [ebp - 0x2c], ebx
mov dword [0x4c6f58], ebx
mov byte [ebp + 0xadc], bl
call fcn.0042bc20
lea eax, [ebp + 0xadc]
push 0x104
push eax
call fcn.0040c749
add esp, 0x14
cmp eax, 1
jne 0x40d442
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0xadc]
push eax
mov esi, SysStringLen
push esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, 2
jne 0x40cf46
push 0x4c7080
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40cf4f
push str.SeRestorePrivilege
call fcn.0040a8ef
pop ecx
test eax, eax
je 0x40cf4f
push 0x4c7080
lea eax, [ebp + 0xadc]
push eax
push esi
call dword [0x4c6508]
test eax, eax
jne 0x40cf4f
mov dword [ebp - 0x2c], 1
jmp 0x40cf4f
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp + 0x7d1]
push ebx
push eax
mov byte [ebp + 0x7d0], bl
call fcn.0042bc20
lea eax, [ebp - 0x18]
push 0x4454f4
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call fcn.00408331
add esp, 0x14
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x7d0]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov edi, 0x4c7290
push edi
push esi
mov dword [ebp - 4], ebx
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], eax
call fcn.004012b7
cmp dword [ebp - 0x1c], ebx
jne 0x40cfda
lea eax, [ebp + 0x7d0]
push 0x4c76b0
push eax
call fcn.0042cf00
pop ecx
pop ecx
test eax, eax
je 0x40cfda
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
and dword [ebp - 0x20], 0
push 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
pop ebx
lea eax, [ebp - 0x18]
push 0x4454e0
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00408331
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], 1
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], eax
call fcn.004012b7
cmp dword [ebp - 0x1c], 0
jne 0x40d42e
cmp dword [ebp - 0x20], 1
jne 0x40d42e
lea eax, [ebp - 0x18]
push 0x4454c4
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00408331
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], 2
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp - 0x18]
push 0x4454f4
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00408331
pop ecx
pop ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], 3
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
push 0x103
lea eax, [ebp + 0x9d9]
push 0
push eax
mov byte [ebp + 0x9d8], 0
call fcn.0042bc20
lea eax, [ebp - 0x18]
push 0x4454a8
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call fcn.00408331
add esp, 0x14
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x9d8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], ebx
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
mov byte [ebp + 0x8d4], 0
push 0x103
lea eax, [ebp + 0x8d5]
push 0
push eax
call fcn.0042bc20
lea eax, [ebp - 0x18]
push 0x445488
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call fcn.00408331
add esp, 0x14
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x8d4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], 5
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
push 0x3e7
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.0042bc20
lea eax, [ebp - 0x18]
push 0x445450
push eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 0x3e8
call fcn.00408331
add esp, 0x14
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
mov dword [ebp - 4], 6
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
mov eax, dword [ebp - 0x10]
push 0x3e7
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x3e9]
push 0
push eax
mov byte [ebp + 0x3e8], 0
call fcn.0042bc20
lea eax, [ebp - 0x18]
push 0x445424
push eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 0x3e8
call fcn.00408331
add esp, 0x14
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x3e8]
mov dword [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push esi
call dword [0x4c64b8]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
mov eax, dword [ebp - 0x10]
push edi
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea eax, [ebp - 0x18]
push 0x4454c4
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x14]
mov edi, 0x4c7398
push eax
push edi
push esi
mov dword [ebp - 4], 8
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp - 0x18]
push 0x4454f4
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], 9
push eax
push edi
push esi
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
xor ebx, ebx
lea eax, [ebp + 0x9d8]
inc ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042b470
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp], 0x4454a8
push eax
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp + 0x9d8]
mov dword [ebp - 4], 0xa
push ecx
push dword [ebp - 0x14]
push eax
push edi
push esi
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp + 0x8d4]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042b470
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp], 0x445488
push eax
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp + 0x8d4]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
push eax
push edi
push esi
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
mov eax, dword [ebp - 0x1c]
push 3
pop ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push 0x445450
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp]
push ecx
push dword [ebp - 0x14]
mov edi, 0x4c74a0
push eax
push edi
push esi
mov dword [ebp - 4], 0xc
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004012b7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push 0x445424
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408331
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp + 0x3e8]
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xd
push dword [eax]
push edi
push esi
call dword [0x4c64b4]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004012b7
cmp dword [ebp - 0x2c], 0
je 0x40d442
lea eax, [ebp + 0xadc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xbe0]
xor ecx, ebp
call fcn.0042ba9a
add ebp, 0xbe4
leave
ret