Function at 0x421700
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x473637
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov edi, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edi
call fcn.0041e0e0
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
xor esi, esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x320], esi
call fcn.0041ff10
mov ecx, dword [edi + 8]
mov byte [esp + 0x318], 1
call fcn.0043e500
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x421986
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
test eax, eax
je 0x421986
lea eax, [esp + 0x6c]
shr eax, 0x10
mov dword [esp + 0x48], eax
jmp 0x4217c4
mov eax, dword [esp + 0x48]
mov edi, dword [0x493014]
mov dword [esp + 0x14], edi
test ax, ax
jne 0x421867
lea ecx, [esp + 0x6c]
movzx eax, cx
push eax
lea ecx, [esp + 0x18]
call fcn.0041c740
mov edi, dword [esp + 0x14]
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 2
call fcn.0041e150
mov eax, dword [eax]
push 0x47b8d8
push eax
call fcn.0045ca28
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
sete bl
cmp ecx, dword [0x493010]
je 0x421848
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x421848
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.0045c814
add esp, 4
test bl, bl
je 0x421935
mov esi, dword [edi - 8]
push 0x5c
push edi
call fcn.0045bc7a
add esp, 8
test eax, eax
jne 0x4218b4
or eax, 0xffffffff
jmp 0x4218b8
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4217ec
push esi
lea ecx, [esp + 0x18]
call fcn.0041a2b0
test eax, eax
je 0x4217e8
lea eax, [esi + esi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x4217e8
mov edi, dword [esp + 0x14]
push eax
lea edx, [esp + 0x70]
push edx
push edi
call fcn.0045c2d0
add esp, 0xc
jmp 0x4217ec
sub eax, edi
sar eax, 1
sub esi, eax
dec esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041e150
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], 0
mov byte [esp + 0x318], 3
je 0x421908
lea ecx, [esp + 0x1c]
call fcn.0041a920
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00420e10
mov dword [eax], 1
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
mov byte [esp + 0x318], 2
cmp edx, dword [0x493010]
je 0x421935
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x421935
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.0045c814
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [edi - 0xc]
mov byte [esp + 0x318], 1
cmp eax, dword [0x493010]
je 0x421967
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x421967
push esi
call fcn.0045c814
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
test eax, eax
jne 0x4217c0
mov edi, dword [esp + 0x2c]
xor esi, esi
lea ecx, [esp + 0x30]
call fcn.0042fb90
mov ebp, dword [esp + 0x28]
cmp dword [ebp - 0xc], esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push ecx
lea ebx, [ebp - 0xc]
mov byte [esp + 0x324], 4
mov dword [esp + 0x38], esp
mov ecx, esp
jl 0x4219bf
push ebx
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4219cc
mov eax, dword [0x493014]
push ebp
mov dword [ecx], eax
call fcn.0041c290
mov ecx, edi
call fcn.00421360
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x421a0d
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ecx + esi*4]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x4219ec
xor esi, esi
cmp ecx, esi
je 0x421a2f
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push edx
push ecx
call fcn.0041de40
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004487a0
add esp, 0x14
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.004487a0
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x318], 0
call fcn.004209b0
add ebp, 0xfffffff4
cmp ebp, dword [0x493010]
je 0x421a78
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x421a78
push ebx
call fcn.0045c814
add esp, 4
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0045bbec
add esp, 0x308
ret