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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp dword [esi + 0x14], 8
jb 0x45bca1
mov edi, dword [esi]
jmp 0x45bca3
mov edi, 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 0x45bcc9
push 0
push dword [ebp + 8]
push edi
push ebx
call eax
jmp 0x45bcd1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45bce8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0
jb 0x45bcf9
mov ecx, dword [esi]
jmp 0x45bcfb
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
or eax, 8
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x45bcd5
test eax, eax
jne 0x45beaf
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], ax
call fcn.004059ba
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x45bd60
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45bd60
push 1
push 0x53fe1c
lea ecx, [ebp - 0x20]
call fcn.004152a1
mov edi, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jmp 0x45bd80
mov edx, 0x104
mov dword [ebp - 0x40], 0x104
lea ecx, [ebp - 0x38]
call fcn.0045b060
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45be35
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
ja 0x45bdd4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], ecx
cmovae eax, dword [ebp - 0x38]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x45bde1
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.004097aa
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
ja 0x45bdfe
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], edi
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x45be0d
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x20]
push 0
push eax
call fcn.004097aa
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415344
push dword [ebp + 8]
lea edx, [ebp - 0x20]
mov ecx, ebx
call fcn.0045bc80
add esp, 4
test eax, eax
je 0x45bd80
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x45be46
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 0x45be6d
mov edx, dword [ebp + 8]
push 0
push edx
push esi
push ebx
call eax
jmp 0x45be75
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x24], 8
mov esi, eax
jb 0x45be88
push dword [ebp - 0x38]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jb 0x45bead
push dword [ebp - 0x20]
call fcn.0050269b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret