Function at 0x46c890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2003c
call fcn.004940f0
push ebx
push esi
push edi
push 1
push 0
mov ebx, ecx
mov ecx, dword [0x4c1de8]
push 0xffffffffffffffff
push 0
mov esi, edx
mov dword [esp + 0x28], ecx
call fcn.00472870
test esi, esi
jne 0x46c8cf
mov dword [esp + 0x14], 0x57
jmp 0x46cc17
mov ecx, dword [0x4be40c]
mov edx, dword [ecx + 0xcc]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46cc17
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push edx
call edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x46c92e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46cc17
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 6
ja case.0x46c93c.5
jmp dword [eax*4 + 0x46cc38]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push ebx
push eax
mov dword [esp + 0x28], 4
call edi
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46c97a
mov ecx, dword [esp + 0x20]
push 0x18
push eax
mov eax, dword [esp + 0x20]
push ecx
call fcn.004010e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46cc17
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push ebx
push ecx
mov dword [esp + 0x28], 0
call edi
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46c91e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46c91e
mov esi, dword [esp + 0x18]
push 1
shr eax, 1
push 0
add eax, 2
push eax
push 0
mov ecx, esi
call fcn.00472870
cmp eax, 1
je 0x46c9ef
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x17], 0
jne 0x46c9f8
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x46ca05
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x46ca1e
test byte [esi + 0x15], 4
je 0x46ca19
mov eax, esi
call fcn.0042f9b0
mov esi, dword [esi + 8]
jmp 0x46ca30
cmp al, 2
jne 0x46ca2b
call fcn.00401000
mov esi, eax
jmp 0x46ca30
mov esi, 0x4c3f50
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push ebx
push ecx
call edi
mov edx, dword [esp + 0xc]
mov edi, eax
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x46ca8a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46ca8a
shr eax, 1
xor ecx, ecx
mov dword [esi + eax*2], ecx
cmp dword [esp + 0x1c], 7
jne 0x46ca8f
mov eax, esi
nop
cmp word [eax], 0
jne 0x46ca85
cmp word [eax + 2], 0
mov ecx, 0xa
mov word [eax], cx
je 0x46ca8f
add eax, 2
jmp 0x46ca70
xor edx, edx
mov word [esi], dx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ca94
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
call fcn.00412eb0
cmp byte [esi + 0x17], 0
jne 0x46cabb
mov eax, dword [esi + 0xc]
jmp 0x46cabd
mov eax, esi
cmp byte [eax + 0x17], 2
jne 0x46cae7
cmp dword [0x4c3fb0], 0
je 0x46cae7
mov ecx, 0x4c3fa4
call fcn.00403d70
test eax, eax
jne 0x46cc17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [eax + 0x15], 0x86
jmp 0x46cc17
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push ebx
push eax
mov dword [esp + 0x28], 0x1fffe
call edi
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46cc17
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
push 1
push esi
lea eax, [edx + edx]
push eax
push esi
mov ecx, ebx
call fcn.00472870
cmp eax, 1
jne 0x46c9e4
cmp byte [ebx + 0x17], 0
jne 0x46cb52
mov esi, dword [ebx + 0xc]
jmp 0x46cb54
mov esi, ebx
test byte [esi + 0x15], 8
je 0x46cb61
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x46cb7a
test byte [esi + 0x15], 4
je 0x46cb75
mov eax, esi
call fcn.0042f9b0
mov eax, dword [esi + 8]
jmp 0x46cb8a
cmp al, 2
jne 0x46cb85
call fcn.00401000
jmp 0x46cb8a
mov eax, 0x4c3f50
xor ecx, ecx
mov word [eax], cx
mov ecx, 8
mov esi, str.0123456789ABCDEF
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [esp + 0x10], edx
jbe 0x46cbdd
jmp 0x46cbb0
movzx ecx, byte [esp + esi + 0x48]
mov edi, ecx
shr ecx, 4
and edi, 0xf
mov di, word [esp + edi*2 + 0x24]
and ecx, 0xf
mov cx, word [esp + ecx*2 + 0x24]
mov word [eax + edx*2 + 2], di
mov word [eax + edx*2], cx
inc esi
add edx, 2
cmp esi, dword [esp + 0x10]
jb 0x46cbb0
xor ecx, ecx
mov word [eax + edx*2], cx
cmp byte [ebx + 0x17], cl
jne 0x46cbed
mov eax, dword [ebx + 0xc]
jmp 0x46cbef
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x46cae7
cmp dword [0x4c3fb0], ecx
jmp 0x46caca
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0x65e
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push eax
test eax, eax
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042f0e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8