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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1fc1
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x640844]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf013f
push 0
mov dword [ebp - method.ScopedLMKey.virtual_0], vtable.ScopedLMKey.0
mov dword [ebp - 0x10c], 0
call fcn.00489710
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edx
test ecx, ecx
je 0x48f8bd
push edx
push edx
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x118], edx
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x108], edx
push eax
push edx
push edx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x48f8b7
lea eax, [ebp - 0x101]
push eax
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x12c]
inc eax
push eax
call fcn.00477d90
mov ebx, dword [ebp - 0x118]
mov edi, dword [ebp - 0x12c]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x48f844
mov eax, dword [ebp - 0x128]
sub eax, edi
sar eax, 1
mov dword [ebp - 0x114], eax
push 0
push 0
push 0
push 0
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebx - 1]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x48f830
push edi
lea ecx, [ebp - 0x100]
call fcn.004893f0
mov dword [ebp - 0x120], eax
mov edx, dword [esi + 0x10]
mov ecx, SysReAllocString
sub ecx, edx
mov byte [ebp - 4], 2
cmp ecx, 1
jb 0x48f8f2
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x48f722
mov ecx, dword [esi]
push 1
push 0x5df704
push edx
push ecx
push esi
push dword [ebp - 0x114]
lea ecx, [ebp - 0x40]
call fcn.00441df0
push dword [ebp - 0x120]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x28]
call fcn.00441c60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa0]
call fcn.004890e0
push dword [ebp - 0x11c]
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
call fcn.0048f5c0
add esp, 8
lea ecx, [ebp - 0xa0]
test al, al
sete byte [ebp - 0x101]
call fcn.00419a70
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x48f7ce
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48f7c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f8f7
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x48f818
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48f80e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f8f7
push edx
push ecx
call fcn.004ece5f
add esp, 8
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.00419a70
cmp byte [ebp - 0x101], 0
jne 0x48f840
sub ebx, 1
je 0x48f844
mov eax, dword [ebp - 0x114]
jmp 0x48f6c1
xor bl, bl
jmp 0x48f87c
mov ebx, dword [ebp - 0x11c]
mov ecx, esi
test ebx, ebx
jne 0x48f863
call fcn.00489710
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x48f877
push 0
push 0x100
call fcn.00489710
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
sete bl
test edi, edi
je 0x48f8af
mov ecx, dword [ebp - 0x124]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x48f8a5
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f8f7
push ecx
push edi
call fcn.004ece5f
add esp, 8
mov ecx, dword [ebp - 0x10c]
jmp 0x48f8bf
mov ecx, dword [ebp - 0x10c]
xor bl, bl
mov dword [ebp - method.ScopedLMKey.virtual_0], vtable.ScopedLMKey.0
test ecx, ecx
je 0x48f8d4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.004ed0cc
mov esp, ebp
pop ebp
ret
call fcn.0041b050
call fcn.004f242f
int3