Function at 0x410360
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d0be8
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.004055e0
push 0x4ea330
lea ecx, [esp + 0x64]
call fcn.00405640
cmp byte [esp + 0x5c], 0
je 0x410498
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x41042c
cmp eax, edi
jge 0x4103cd
or eax, 0xffffffff
jmp 0x4103ec
push 0x4ea334
push ecx
call fcn.004aa6a3
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x4103e8
or eax, 0xffffffff
jmp 0x4103ec
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x41042c
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.00407770
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00404f30
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jle 0x410498
cmp eax, edi
jge 0x41043d
or eax, 0xffffffff
jmp 0x41045c
push 0x4ea33c
push ecx
call fcn.004aa6a3
mov ecx, dword [esp + 0x68]
add esp, 8
cmp eax, edi
jne 0x410458
or eax, 0xffffffff
jmp 0x41045c
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
add edx, 0xfffffffe
cmp eax, edx
jne 0x410498
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.00407770
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00404f30
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 0x4104da
cmp dx, di
je 0x4104d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4104da
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4104b4
xor eax, eax
jmp 0x4104df
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
sete bl
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x5c]
call fcn.00404f30
test bl, bl
je 0x410807
lea ecx, [esp + 0x1c]
xor esi, esi
call fcn.00404dc0
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00404dc0
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 0x4ea350
call fcn.00405480
mov byte [esp + 0x58], 7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x60], 6
call fcn.00410c10
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 1
jbe 0x410578
mov eax, dword [esp + 0x38]
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00407770
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x41058e
ja 0x410588
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x38]
jmp 0x410592
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
call fcn.00405420
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 0x4ea354
call fcn.00405480
mov byte [esp + 0x58], 0xa
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x60], bl
call fcn.00410c10
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 1
jbe 0x4106a3
cmp eax, edi
ja 0x4105fe
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, 0x4ea358
call fcn.004172e0
add esp, 4
test al, al
je 0x41061e
mov esi, SysStringLen
jmp 0x4106a3
cmp dword [esp + 0x2c], edi
ja 0x41062e
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 0x41064b
mov esi, SysReAllocString
jmp 0x4106a3
cmp dword [esp + 0x2c], edi
ja 0x41065b
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 0x410678
mov esi, SysReAllocString
jmp 0x4106a3
cmp dword [esp + 0x2c], edi
ja 0x410688
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 0x4106a3
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [esp + 0x5c]
cmp dword [eax - 0xc], edi
jge 0x4106b1
or eax, 0xffffffff
jmp 0x4106ce
push 0x4ea3e0
push eax
call fcn.004aa6a3
add esp, 8
cmp eax, edi
jne 0x4106c8
or eax, 0xffffffff
jmp 0x4106ce
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 0x41078f
mov edx, dword [esp + 0x18]
push ebp
push edi
push ecx
mov ecx, esp
cmp dword [edx - 0xc], edi
je 0x41072c
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], esp
push eax
call fcn.00405420
mov byte [esp + 0x60], 0xb
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00405420
mov byte [esp + 0x64], 0xc
push esi
mov byte [esp + 0x68], bl
call fcn.00410b00
add esp, 0x14
test al, al
je 0x41078f
jmp 0x41078a
lea eax, [esp + 0x68]
mov dword [esp + 0x30], esp
push eax
call fcn.00405420
mov byte [esp + 0x60], 0xd
push esi
mov byte [esp + 0x64], bl
call fcn.00410830
add esp, 0x10
test al, al
jne 0x41078a
push ebp
push 1
push ecx
lea edx, [esp + 0x68]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00405420
mov byte [esp + 0x60], 0xe
push esi
mov byte [esp + 0x64], bl
call fcn.00410830
add esp, 0x10
test al, al
jne 0x41078a
mov eax, dword [esp + 0x5c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x41078f
mov byte [esp + 0x17], 1
mov byte [esp + 0x54], 8
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x4107b6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041c1d0
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.004ab0b3
add esp, 4
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x5c]
call fcn.00404f30
mov byte [esp + 0x54], 5
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x4107eb
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c1d0
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.004ab0b3
add esp, 4
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x18]
call fcn.00404f30
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x1c]
call fcn.00404f30
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404f30
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