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

Disassembly:
mov eax, 0x1848
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x1844], eax
mov eax, dword [esp + 0x184c]
mov edx, dword [esp + 0x1864]
push ebx
mov dword [esp + 0x14], eax
mov ebx, ecx
mov eax, dword [esp + 0x1854]
mov ecx, dword [esp + 0x1864]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1858]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1870]
push 0x400
push eax
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
xor ecx, ecx
push eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x104c], 0
mov word [esp + 0x84c], cx
call fcn.004e6a80
lea ecx, [esp + 0x4c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b101
sub ecx, edx
sar ecx, 1
je 0x46b121
cmp word [esp + ecx*2 + 0x3e], 0x5c
jne 0x46b121
xor eax, eax
mov word [esp + ecx*2 + 0x3e], ax
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
lea edi, [eax*4]
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x46b14c
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + ecx]
mov eax, dword [eax + 0x29c]
mov eax, dword [eax + 0x84]
or eax, 9
push eax
push 0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b1a9
push eax
push eax
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
lea eax, [esp + 0x48]
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x46b1b3
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
jmp 0x46b419
mov ecx, dword fs:[0x2c]
push esi
mov esi, 4
mov dword [esp + 0x10], 0
mov eax, dword [edi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x46b1e0
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [edi + ecx]
mov ecx, dword [esp + 0x1864]
push ebp
mov ebp, dword [esp + 0x30]
mov edi, dword [eax + 0x29c]
mov dword [esp + 0x2c], edi
test ebp, ebp
je 0x46b330
cmp ecx, 2
je 0x46b330
mov dword [esp + 0x104c], 0
mov dword [esp + 0x1050], 0
xor eax, eax
mov dword [esp + 0x24], 0x400
push eax
push eax
mov word [esp + 0x850], ax
dec ebp
lea eax, [esp + 0x1050]
push eax
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x85c]
push eax
push ebp
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46b300
lea eax, [esp + 0x40]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x14]
cmp byte [ecx], 3
jne 0x46b299
mov edi, dword [esp + 0x20]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push edi
push 2
call fcn.00457240
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp eax, ecx
je 0x46b272
mov edi, dword [esp + 0x2c]
jmp 0x46b2b3
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push 3
call fcn.00457240
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
test eax, eax
je 0x46b2c8
cmp esi, 6
jne 0x46b2c0
cmp eax, ebx
je 0x46b2cd
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x46b30c
cmp esi, 6
jne 0x46b2d8
mov esi, 1
mov dword [esp + 0x10], esi
jmp 0x46b2dd
cmp esi, 1
jne 0x46b313
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46b2f9
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00456f50
mov esi, dword [esp + 0x10]
test al, al
jne 0x46b308
add dword [edi], 1
adc dword [edi + 4], 0
test ebp, ebp
jne 0x46b220
mov ecx, dword [esp + 0x18]
cmp esi, 1
je 0x46b320
jmp 0x46b317
mov ecx, dword [esp + 0x18]
cmp esi, 4
jne 0x46b40b
cmp dword [ecx], 0
jne 0x46b40b
mov ecx, dword [esp + 0x1868]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46b40b
cmp ecx, 1
jne 0x46b34f
cmp byte [esp + 0x186c], 0
je 0x46b40b
mov dword [esp + 0x1048], 0xfffffffe
lea ebp, [eax - 1]
nop dword [eax]
lea eax, [esp + 0x104c]
mov dword [esp + 0x24], 0x400
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x85c]
push eax
push ebp
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46b501
cmp dword [esp + 0x1868], 1
je 0x46b46a
lea eax, [esp + 0x40]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x14]
cmp byte [ecx], 3
jne 0x46b3de
mov edi, dword [esp + 0x20]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push edi
push 2
call fcn.00457240
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp eax, ecx
je 0x46b3b7
mov edi, dword [esp + 0x2c]
jmp 0x46b3f8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push 3
call fcn.00457240
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
test eax, eax
je 0x46b432
cmp esi, 6
jne 0x46b405
cmp eax, ebx
je 0x46b437
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop esi
mov ecx, dword [esp + 0x184c]
pop edi
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x1848
ret 0x20
cmp esi, 6
jne 0x46b442
mov esi, 1
mov dword [esp + 0x10], esi
jmp 0x46b447
cmp esi, 1
jne 0x46b40b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46b463
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00456f50
mov esi, dword [esp + 0x10]
test al, al
jne 0x46b40b
add dword [edi], 1
adc dword [edi + 4], 0
cmp byte [esp + 0x186c], 0
je 0x46b501
cmp word [esp + 0x48], 0
lea eax, [esp + 0x848]
push eax
mov ecx, 0x4f5b70
mov eax, 0x4feb44
cmove eax, ecx
push eax
lea eax, [esp + 0x50]
push eax
push 0x4ff2a4
lea eax, [esp + 0x1064]
push 0x400
push eax
call fcn.004e6440
add esp, 0x18
lea eax, [esp + 0x1054]
mov ecx, ebx
push eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x1878]
push dword [esp + 0x1878]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x3c]
call fcn.0046b070
cmp eax, 4
je 0x46b501
mov esi, eax
cmp eax, 1
jne 0x46b40b
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
jne 0x46b40b
test ebp, ebp
je 0x46b40b
dec ebp
jmp 0x46b360