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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ac60
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], edi
jb 0x404521
mov esi, dword [edi]
jmp 0x404523
mov esi, edi
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40454a
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push esi
push ebx
call eax
jmp 0x404552
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
cmp eax, esi
jne 0x40455f
xor eax, eax
jmp 0x40470f
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x4c], esi
jb 0x40456c
mov eax, dword [edi]
jmp 0x40456e
mov eax, edi
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x4c]
push edx
or ecx, 8
push ecx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x404558
cmp eax, esi
jne 0x40470f
push esi
xor edx, edx
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00403810
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x4045d8
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x4045c2
lea ecx, [ebp - 0x2c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4045d8
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x40d10c
call fcn.004040d0
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 1
push 0
push 0
push 0
lea edx, [ebp - 0x54]
push 0
push edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], 0x104
call fcn.00404800
push eax
mov eax, dword [ebp - 0x4c]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40468d
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x38]
lea esi, [ebp - 0x48]
cmp ecx, eax
ja 0x404636
or eax, 0xffffffff
call fcn.00403bb0
jmp 0x404642
mov ebx, ecx
sub ebx, eax
call fcn.00404730
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmp edi, eax
ja 0x404658
or eax, 0xffffffff
mov ecx, edi
call fcn.00403bb0
jmp 0x404664
mov ebx, edi
sub ebx, eax
call fcn.00404730
mov ebx, dword [ebp - 0x50]
push 0
lea ecx, [ebp - 0x48]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.004039d0
mov edx, dword [ebp + 0x10]
push edx
mov eax, esi
push eax
push ebx
call fcn.004044e0
add esp, 0xc
test eax, eax
je 0x4045f3
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x58]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x4046a6
mov esi, dword [esi]
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4046cd
mov edx, dword [ebp + 0x10]
push 0
push edx
push esi
push ebx
call eax
jmp 0x4046d5
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x34], edi
jb 0x4046e8
mov eax, dword [ebp - 0x48]
push eax
call fcn.004049bc
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x40470d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004049bc
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret