Function at 0x454d40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e9608
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x58]
xor edi, edi
push edi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x454da9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x455112
test byte [esp + 0x5c], 1
mov ebx, dword [esp + 0x54]
je 0x454eee
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push eax
mov dword [esp + 0x58], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x3c], esi
neg ecx
or ecx, eax
push ecx
call fcn.004aef3e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 4
mov esi, eax
xor edi, edi
jmp 0x454e20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add eax, 1
lea ecx, [esp + 0x3c]
push ecx
push edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push eax
push 0
lea ecx, [esp + 0x64]
push ecx
push esi
push edi
push edx
call ebp
test eax, eax
jne 0x454ea5
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
lea edx, [esp + 0x38]
push edx
push esi
push ebx
call eax
test eax, eax
jne 0x454eac
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004aef39
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x454e93
push eax
mov eax, dword [esp + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
jmp 0x455112
cmp eax, 0x103
je 0x454ebc
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
add edi, 1
jmp 0x454e20
push esi
call fcn.004aef39
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
mov dword [esp + 0x4c], 0xffffffff
je 0x454ee3
mov edx, dword [esp + 0x34]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [esp + 0x20]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aef3e
mov ebp, eax
mov eax, dword [esp + 0x24]
add esp, 4
add eax, 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
push ecx
push ebp
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4550c1
test byte [esp + 0x5c], 2
je 0x454f61
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
push ebp
call eax
test eax, eax
je 0x4550d2
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4550c8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454f82
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebp
lea esi, [eax + 2]
jmp 0x454fa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454fa0
sub eax, esi
sar eax, 1
lea eax, [eax + edx + 2]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aef3e
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454fd3
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebp
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454ff0
sub eax, edi
sar eax, 1
push ebx
lea eax, [eax + edx + 2]
push eax
push esi
call fcn.004c0258
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x455013
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebp
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x455030
sub eax, edi
sar eax, 1
push 0x4ff200
lea ecx, [eax + edx + 2]
push ecx
push esi
call fcn.004c5e24
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x455057
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebp
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x455070
sub eax, edi
sar eax, 1
push ebp
lea edx, [eax + edx + 2]
push edx
push esi
call fcn.004c5e24
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
add esp, 0xc
add eax, 1
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
call fcn.00454d40
test eax, eax
je 0x4550df
push esi
call fcn.004aef39
add esp, 4
add dword [esp + 0x54], 1
jmp 0x454f23
cmp eax, 0x103
je 0x4550fd
add dword [esp + 0x54], 1
jmp 0x454f23
push ebp
call fcn.004aef39
add esp, 4
xor eax, eax
jmp 0x455112
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004aef39
push esi
call fcn.004aef39
add esp, 8
xor eax, eax
jmp 0x455112
push ebp
call fcn.004aef39
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10