Function at 0x4061c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x43e26c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x44ef30]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ef30]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov esi, dword [esp + 0x148]
mov ebp, dword [esp + 0x144]
push esi
push ebp
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4062e9
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406395
mov ebx, 2
cmp eax, ebx
jne 0x4062f0
call fcn.00417947
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406260
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.Key_not_found:__s
push ecx
mov dword [esp + 0x148], 0
call fcn.00404d40
mov esi, dword [esp + 0x20]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00402880
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x140], 1
call fcn.004038f0
mov ecx, eax
mov byte [esp + 0x140], 0
call fcn.00404f60
mov dword [esp + 0x13c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4062e9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, 1
jmp 0x40646c
call fcn.00417947
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40630a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.Error_opening_key:__s
push ecx
mov dword [esp + 0x148], ebx
call fcn.00404d40
mov esi, dword [esp + 0x20]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00402880
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x140], 3
call fcn.004038f0
mov ecx, eax
mov byte [esp + 0x140], bl
call fcn.00404f60
mov dword [esp + 0x13c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40638e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor al, al
jmp 0x40646c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, esi
cmp byte [edi - 1], 0x5c
je 0x4063ad
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406450
lea ebx, [esp + 0x2c]
sub ebx, edi
mov edx, 0x208
mov eax, edi
jmp 0x4063f0
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x40640b
mov cl, byte [ebx + eax]
test cl, cl
je 0x40640b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4063f0
jmp 0x40640f
test edx, edx
jne 0x406410
dec eax
mov ecx, dword [esp + 0x14]
push esi
push ebp
mov byte [eax], 0
call fcn.004061c0
test al, al
je 0x406450
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push edx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4063e1
mov byte [edi - 1], 0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00425da1
add esp, 0x12c
ret 8