Function at 0x411160
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d05e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ff0f4]
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.00405a60
push 0x4ea358
lea ecx, [esp + 0x64]
call fcn.00405ac0
cmp byte [esp + 0x5c], 0
je 0x411298
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x41122c
cmp eax, edi
jge 0x4111cd
or eax, 0xffffffff
jmp 0x4111ec
push 0x4ea35c
push ecx
call fcn.004aa1b6
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x4111e8
or eax, 0xffffffff
jmp 0x4111ec
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x41122c
mov ecx, dword [ecx - 0xc]
add ecx, 0xfffffffe
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x68]
call fcn.00417230
mov byte [esp + 0x54], 1
push eax
lea ecx, [esp + 0x64]
call fcn.00407dc0
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405410
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x411298
cmp eax, edi
jge 0x41123d
or eax, 0xffffffff
jmp 0x41125c
push 0x4ea364
push ecx
call fcn.004aa1b6
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x411258
or eax, 0xffffffff
jmp 0x41125c
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x411298
mov ecx, dword [ecx - 0xc]
add ecx, 0xfffffffe
push ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x68]
call fcn.00417230
mov byte [esp + 0x54], 2
push eax
lea ecx, [esp + 0x64]
call fcn.00407dc0
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405410
push 4
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x68]
call fcn.00417230
mov byte [esp + 0x54], 3
mov eax, dword [eax]
mov ecx, str.hkey
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4112da
cmp dx, di
je 0x4112d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4112da
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4112b4
xor eax, eax
jmp 0x4112df
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
sete bl
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00405410
test bl, bl
je 0x411607
lea ecx, [esp + 0x1c]
xor esi, esi
call fcn.00405840
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00405840
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 0x4ea378
call fcn.00405900
mov byte [esp + 0x58], 7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x60], 6
call fcn.00411a10
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 1
jbe 0x411378
mov eax, dword [esp + 0x38]
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00407dc0
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x41138e
ja 0x411388
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x38]
jmp 0x411392
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
call fcn.004058a0
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 0x4ea37c
call fcn.00405900
mov byte [esp + 0x58], 0xa
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x60], bl
call fcn.00411a10
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 1
jbe 0x4114a3
cmp eax, edi
ja 0x4113fe
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, 0x4ea380
call fcn.004172e0
add esp, 4
test al, al
je 0x41141e
mov esi, SysStringLen
jmp 0x4114a3
cmp dword [esp + 0x2c], edi
ja 0x41142e
push 0x80070057
call fcn.00401000
mov edx, dword [esp + 0x28]
push edx
mov ecx, str.hkey_current_user
call fcn.004172e0
add esp, 4
test al, al
je 0x41144b
mov esi, SysReAllocString
jmp 0x4114a3
cmp dword [esp + 0x2c], edi
ja 0x41145b
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x28]
push eax
mov ecx, str.hkey_classes_root
call fcn.004172e0
add esp, 4
test al, al
je 0x411478
mov esi, SysReAllocString
jmp 0x4114a3
cmp dword [esp + 0x2c], edi
ja 0x411488
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, str.hkey_local_machine
call fcn.004172e0
add esp, 4
test al, al
je 0x4114a3
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [esp + 0x5c]
cmp dword [eax - 0xc], edi
jge 0x4114b1
or eax, 0xffffffff
jmp 0x4114ce
push 0x4ea408
push eax
call fcn.004aa1b6
add esp, 8
cmp eax, edi
jne 0x4114c8
or eax, 0xffffffff
jmp 0x4114ce
sub eax, dword [esp + 0x5c]
sar eax, 1
inc eax
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00416c70
cmp esi, edi
je 0x41158f
mov edx, dword [esp + 0x18]
push ebp
push edi
push ecx
mov ecx, esp
cmp dword [edx - 0xc], edi
je 0x41152c
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], esp
push eax
call fcn.004058a0
mov byte [esp + 0x60], 0xb
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004058a0
mov byte [esp + 0x64], 0xc
push esi
mov byte [esp + 0x68], bl
call fcn.00411900
add esp, 0x14
test al, al
je 0x41158f
jmp 0x41158a
lea eax, [esp + 0x68]
mov dword [esp + 0x30], esp
push eax
call fcn.004058a0
mov byte [esp + 0x60], 0xd
push esi
mov byte [esp + 0x64], bl
call fcn.00411630
add esp, 0x10
test al, al
jne 0x41158a
push ebp
push 1
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004058a0
mov byte [esp + 0x60], 0xe
push esi
mov byte [esp + 0x64], bl
call fcn.00411630
add esp, 0x10
test al, al
jne 0x41158a
mov eax, dword [esp + 0x5c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x41158f
mov byte [esp + 0x17], 1
mov byte [esp + 0x54], 8
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4115b6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041c090
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.004aabc6
add esp, 4
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x5c]
call fcn.00405410
mov byte [esp + 0x54], 5
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x4115eb
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c090
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.004aabc6
add esp, 4
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00405410
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x1c]
call fcn.00405410
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00405410
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