Function at 0x410490
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d15c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor edi, edi
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x17], 0
call fcn.00405610
push 0x4eb350
lea ecx, [esp + 0x64]
call fcn.00405670
cmp byte [esp + 0x5c], 0
je 0x4105c8
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x41055c
cmp eax, edi
jge 0x4104fd
or eax, 0xffffffff
jmp 0x41051c
push 0x4eb354
push ecx
call fcn.004ab0ab
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x410518
or eax, 0xffffffff
jmp 0x41051c
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x41055c
mov ecx, dword [ecx - 0xc]
add ecx, 0xfffffffe
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x68]
call fcn.004175a0
mov byte [esp + 0x54], 1
push eax
lea ecx, [esp + 0x64]
call fcn.00407780
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405020
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x4105c8
cmp eax, edi
jge 0x41056d
or eax, 0xffffffff
jmp 0x41058c
push 0x4eb35c
push ecx
call fcn.004ab0ab
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x410588
or eax, 0xffffffff
jmp 0x41058c
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x4105c8
mov ecx, dword [ecx - 0xc]
add ecx, 0xfffffffe
push ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x68]
call fcn.004175a0
mov byte [esp + 0x54], 2
push eax
lea ecx, [esp + 0x64]
call fcn.00407780
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405020
push 4
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x68]
call fcn.004175a0
mov byte [esp + 0x54], 3
mov eax, dword [eax]
mov ecx, str.hkey
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41060a
cmp dx, di
je 0x410606
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41060a
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4105e4
xor eax, eax
jmp 0x41060f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
sete bl
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405020
test bl, bl
je 0x410937
lea ecx, [esp + 0x1c]
xor esi, esi
call fcn.00404eb0
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00404eb0
mov byte [esp + 0x54], 5
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov byte [esp + 0x54], 6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eb370
call fcn.004054b0
mov byte [esp + 0x58], 7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x60], 6
call fcn.00410d40
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 1
jbe 0x4106a8
mov eax, dword [esp + 0x38]
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00407780
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x4106be
ja 0x4106b8
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x38]
jmp 0x4106c2
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
call fcn.00405450
mov byte [esp + 0x54], 8
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov bl, 9
mov byte [esp + 0x54], bl
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eb374
call fcn.004054b0
mov byte [esp + 0x58], 0xa
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x60], bl
call fcn.00410d40
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 1
jbe 0x4107d3
cmp eax, edi
ja 0x41072e
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, 0x4eb378
call fcn.00417650
add esp, 4
test al, al
je 0x41074e
mov esi, SysStringLen
jmp 0x4107d3
cmp dword [esp + 0x2c], edi
ja 0x41075e
push 0x80070057
call fcn.00401000
mov edx, dword [esp + 0x28]
push edx
mov ecx, str.hkey_current_user
call fcn.00417650
add esp, 4
test al, al
je 0x41077b
mov esi, SysReAllocString
jmp 0x4107d3
cmp dword [esp + 0x2c], edi
ja 0x41078b
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x28]
push eax
mov ecx, str.hkey_classes_root
call fcn.00417650
add esp, 4
test al, al
je 0x4107a8
mov esi, SysReAllocString
jmp 0x4107d3
cmp dword [esp + 0x2c], edi
ja 0x4107b8
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, str.hkey_local_machine
call fcn.00417650
add esp, 4
test al, al
je 0x4107d3
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [esp + 0x5c]
cmp dword [eax - 0xc], edi
jge 0x4107e1
or eax, 0xffffffff
jmp 0x4107fe
push 0x4eb400
push eax
call fcn.004ab0ab
add esp, 8
cmp eax, edi
jne 0x4107f8
or eax, 0xffffffff
jmp 0x4107fe
sub eax, dword [esp + 0x5c]
sar eax, 1
inc eax
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00416fe0
cmp esi, edi
je 0x4108bf
mov edx, dword [esp + 0x18]
push ebp
push edi
push ecx
mov ecx, esp
cmp dword [edx - 0xc], edi
je 0x41085c
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], esp
push eax
call fcn.00405450
mov byte [esp + 0x60], 0xb
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00405450
mov byte [esp + 0x64], 0xc
push esi
mov byte [esp + 0x68], bl
call fcn.00410c30
add esp, 0x14
test al, al
je 0x4108bf
jmp 0x4108ba
lea eax, [esp + 0x68]
mov dword [esp + 0x30], esp
push eax
call fcn.00405450
mov byte [esp + 0x60], 0xd
push esi
mov byte [esp + 0x64], bl
call fcn.00410960
add esp, 0x10
test al, al
jne 0x4108ba
push ebp
push 1
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00405450
mov byte [esp + 0x60], 0xe
push esi
mov byte [esp + 0x64], bl
call fcn.00410960
add esp, 0x10
test al, al
jne 0x4108ba
mov eax, dword [esp + 0x5c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x4108bf
mov byte [esp + 0x17], 1
mov byte [esp + 0x54], 8
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4108e6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041c750
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.004ababb
add esp, 4
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x5c]
call fcn.00405020
mov byte [esp + 0x54], 5
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x41091b
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c750
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.004ababb
add esp, 4
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00405020
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x1c]
call fcn.00405020
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00405020
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret