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

Disassembly:
mov eax, 0x4b3e40
call fcn.00483228
sub esp, 0x140
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x4e83f8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.00462b45
cmp eax, 1
jne 0x45d860
cmp dword [ebp + 0x10], esi
jne 0x45d7c4
lea eax, [ebp - 0x10]
mov ebx, 0xf003f
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0xff
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x3c], esi
push dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], esi
call edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x14c]
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], esi
je 0x45d730
push 2
pop ebx
jmp 0x45db8d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push ebx
push esi
push esi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x14]
push eax
call fcn.00447289
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
push esi
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], 2
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.0049d8d8
neg bl
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 8
jmp 0x45db84
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0xf003f
push esi
push esi
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], 3
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
push esi
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], 4
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.0049d8d8
neg bl
sbb ebx, ebx
and ebx, 0xfffffffa
add ebx, 7
jmp 0x45db84
cmp eax, 2
jne 0x45daed
cmp dword [ebp + 0x10], esi
jne 0x45d965
lea ecx, [ebp - 0x30]
call fcn.0049835d
lea eax, [ebp - 0x10]
mov ebx, 0xf003f
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x30]
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 - 0x28], esi
jne 0x45d951
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push ebx
push esi
push esi
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], 6
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call edi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.0049d8d8
push esi
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], 7
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 5
inc bl
call fcn.0049d8d8
push dword [ebp - 0x10]
neg bl
sbb ebx, ebx
and ebx, 0xfffffffc
add ebx, 0xa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45d954
push 5
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00498390
jmp 0x45db8d
lea ecx, [ebp - 0x30]
call fcn.0049835d
lea eax, [ebp - 0x10]
mov ebx, 0xf003f
push eax
push ebx
push esi
mov byte [ebp - 4], 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x30]
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 - 0x28], esi
mov dword [ebp + 0x10], esi
jle 0x45da45
push dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
call fcn.0040cbcf
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x18]
push eax
call fcn.0044cdd9
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 9
cmp dword [eax - 8], esi
je 0x45da27
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x14], esp
push 1
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
call fcn.0040cbcf
push ecx
mov ecx, esp
mov dword [ebp - 0x14], 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], 0xa
call fcn.0049d64d
push edi
mov byte [ebp - 4], 9
call fcn.00447f34
add esp, 0x10
push dword [ebp + 8]
call fcn.0045d412
add esp, 0xc
jmp 0x45da2a
inc dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0049d8d8
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x45d9ab
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push ebx
push esi
push esi
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], 0xb
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.0049d8d8
push esi
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], 0xc
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 8
inc bl
call fcn.0049d8d8
push dword [ebp - 0x10]
neg bl
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
jmp 0x45d95b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0xf003f
push esi
push esi
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], 0xd
call fcn.0049dcbc
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
push esi
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], 0xe
call fcn.0049dcbc
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.0049d8d8
neg bl
sbb ebx, ebx
and ebx, 0xfffffff5
add ebx, 0xb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret