Function at 0x478200
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7c30
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x65a000]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
push edi
mov eax, dword [0x65a000]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x6fb010], 0
je 0x4782c8
call fcn.004020c0
push 0xf
xor eax, eax
push str.EMERGENCYREBOOT
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004058d0
mov dword [esp + 0x68], 0
mov ecx, dword [0x6fb010]
lea eax, [esp + 0x10]
push eax
add ecx, 0xc
call fcn.004070c0
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x24], 8
mov esi, eax
jb 0x4782a9
push dword [esp + 0x10]
call fcn.0048166b
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
test esi, esi
jne 0x478394
push 0
lea esi, [edi + 0x1ec]
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
test eax, eax
je 0x47830c
cmp dword [esi + 0x14], 8
jb 0x4782ee
mov ecx, dword [esi]
jmp 0x4782f0
mov ecx, esi
mov edx, 1
call fcn.00419820
push 0
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
push 0
lea esi, [edi + 0x204]
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
test eax, eax
je 0x478350
cmp dword [esi + 0x14], 8
jb 0x478332
mov ecx, dword [esi]
jmp 0x478334
mov ecx, esi
mov edx, 1
call fcn.00419820
push 0
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
push 0
lea esi, [edi + 0x21c]
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
test eax, eax
je 0x478394
cmp dword [esi + 0x14], 8
jb 0x478376
mov ecx, dword [esi]
jmp 0x478378
mov ecx, esi
mov edx, 1
call fcn.00419820
push 0
push 0x60ec18
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.00406530
cmp dword [0x6fb010], 0
je 0x478480
cmp dword [0x6fb00c], 0
je 0x478480
push str.PARAM_REG_X86
lea ecx, [esp + 0x2c]
call fcn.004051f0
lea eax, [esp + 0x28]
mov dword [esp + 0x68], 1
mov ecx, dword [0x6fb010]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00406e30
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x4783f7
push dword [esp + 0x28]
call fcn.0048166b
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp dword [esp + 0x50], eax
je 0x478456
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x478456
push eax
push str.CMSetupApp::Terminate__SHDeleteKey___Failed___0X_08X
call fcn.00416140
cmp dword [esp + 0x54], 8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
push str.CMSetupApp::Terminate__SHDeleteKey___Failed___Regkey:_s
call fcn.00416140
cmp dword [esp + 0x54], 8
jb 0x478469
push dword [esp + 0x40]
call fcn.0048166b
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov esi, dword [0x6fb018]
test esi, esi
je 0x4784a4
mov ecx, esi
call fcn.0046ab80
push esi
call fcn.0048166b
add esp, 4
mov dword [0x6fb018], 0
mov ecx, dword [0x6fb014]
test ecx, ecx
je 0x4784be
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6fb014], 0
mov ecx, dword [0x6fb010]
test ecx, ecx
je 0x4784d8
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x6fb010], 0
mov esi, dword [0x6fb00c]
test esi, esi
je 0x47850a
mov eax, dword [esi]
test eax, eax
je 0x4784f7
push eax
call fcn.0048166b
add esp, 4
mov dword [esi], 0
push esi
call fcn.0048166b
add esp, 4
mov dword [0x6fb00c], 0
mov esi, dword [0x6fb01c]
test esi, esi
je 0x47854f
mov eax, dword [esi + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x47852b
push eax
call edi
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47853c
push eax
call edi
mov dword [esi + 0x58], 0
push esi
call fcn.0048166b
add esp, 4
mov dword [0x6fb01c], 0
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005a4646
mov esp, ebp
pop ebp
ret