Function at 0x4146a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x7aca10]
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 0x4146c1
mov edi, dword [esi]
jmp 0x4146c3
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 0x4146e9
push 0
push dword [ebp + 8]
push edi
push ebx
call eax
jmp 0x4146f3
push edi
push ebx
call fcn.00451f9b
add esp, 8
test eax, eax
jne 0x41470a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], 0
jb 0x41471b
mov ecx, dword [esi]
jmp 0x41471d
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 fcn.00452049
add esp, 0x14
cmp eax, 2
je 0x4146f7
test eax, eax
jne 0x4148ad
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.00405600
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x414782
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x414782
push 0x4fc3dc
lea ecx, [ebp - 0x20]
call fcn.00403bc0
mov edi, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
nop dword [eax]
mov edx, 0x104
mov dword [ebp - 0x40], 0x104
lea ecx, [ebp - 0x38]
call fcn.004125b0
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 0x414855
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
ja 0x4147f4
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 0x414801
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040d320
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
ja 0x41481e
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 0x41482d
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x20]
push 0
push eax
call fcn.0040d320
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b70
push dword [ebp + 8]
lea edx, [ebp - 0x20]
mov ecx, ebx
call fcn.004146a0
add esp, 4
test eax, eax
je 0x4147a0
push dword [ebp - 0x3c]
call fcn.00451e22
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x414868
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 0x41488f
mov edx, dword [ebp + 8]
push 0
push edx
push esi
push ebx
call eax
jmp 0x414899
push esi
push ebx
call fcn.00451f9b
add esp, 8
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00403c60
lea ecx, [ebp - 0x20]
call fcn.00403c60
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret