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

Disassembly:
mov eax, 0x4b3dbc
call fcn.00483228
sub esp, 0x13c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x4e83f8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00462b45
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 1
mov edi, 0xf003f
jne 0x45d4d8
cmp dword [ebp + 0x10], ebx
jne 0x45d5d1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0xff
push eax
push edi
push ebx
mov dword [ebp + 0x10], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], ebx
je 0x45d5d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
xor eax, eax
jmp 0x45d66a
cmp eax, 2
jne 0x45d5d1
cmp dword [ebp + 0x10], ebx
je 0x45d5d1
lea ecx, [ebp - 0x40]
call fcn.0049835d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
call fcn.0045ddc7
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x38], ebx
mov dword [ebp + 0x10], ebx
jle 0x45d5c6
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
call fcn.0040cbcf
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x14]
push eax
call fcn.0044cdd9
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp dword [eax - 8], ebx
je 0x45d5a8
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x18], esp
push 1
lea ecx, [ebp - 0x40]
push dword [ebp + 0x10]
call fcn.0040cbcf
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0049d64d
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.0049d64d
push edi
mov byte [ebp - 4], 2
call fcn.00447f34
add esp, 0x10
push dword [ebp + 8]
call fcn.0045d412
add esp, 0xc
mov edi, 0xf003f
jmp 0x45d5ab
inc dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0049d8d8
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x38]
jl 0x45d527
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00498390
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push ebx
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0049d64d
lea eax, [ebp + 0x10]
push eax
call fcn.00447289
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0049d8d8
push ebx
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0049d64d
lea eax, [ebp + 8]
push eax
call fcn.00447c52
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [ebp + 8]
neg esi
sbb esi, esi
mov byte [ebp - 4], bl
inc esi
call fcn.0049d8d8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret