Function at 0x41a506
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x6c
mov eax, 0x422882
call fcn.00421242
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push ecx
push eax
push ebx
call fcn.00419c2e
mov esi, dword [ebp - 0x6c]
mov edi, eax
test edi, edi
jns 0x41a57a
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a74e
test dword [eax + 0x1c], 0x40000
je 0x41a74e
cmp byte [eax + 0x19], 2
jb 0x41a74e
push edi
push ebx
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x53
pop ecx
call fcn.00419785
jmp 0x41a74e
push 0x50
pop edi
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x78], edi
cmp dword [ebp - 0x64], 0
je 0x41a691
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0x4032b8
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x41a600
jle 0x41a5c4
movzx edi, di
or edi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a74e
test dword [eax + 0x1c], 0x40000
je 0x41a74e
cmp byte [eax + 0x19], 2
jb 0x41a74e
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x54
pop ecx
call fcn.00419724
jmp 0x41a74e
cmp dword [ebp - 0x68], 1
je 0x41a63e
mov edi, 0x80020005
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a74e
test dword [eax + 0x1c], 0x40000
je 0x41a74e
cmp byte [eax + 0x19], 2
jb 0x41a74e
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x55
jmp 0x41a5f5
push dword [ebp - 0x64]
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
mov edi, eax
test edi, edi
jns 0x41a691
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a74e
test dword [eax + 0x1c], 0x40000
je 0x41a74e
cmp byte [eax + 0x19], 2
jb 0x41a74e
push edi
push ebx
lea ecx, [ebp - 0x60]
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x56
jmp 0x41a56f
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x74], 0
je 0x41a74c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 4
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0x403220
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x41a705
jle 0x41a6d1
movzx edi, di
or edi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a6fc
test dword [eax + 0x1c], 0x40000
je 0x41a6fc
cmp byte [eax + 0x19], 2
jb 0x41a6fc
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x57
pop ecx
call fcn.00419724
mov dword [ebp - 4], 1
jmp 0x41a755
cmp dword [ebp - 0x68], 4
je 0x41a744
mov eax, dword [0x42500c]
mov edi, 0x80020005
cmp eax, 0x42500c
je 0x41a73b
test dword [eax + 0x1c], 0x40000
je 0x41a73b
cmp byte [eax + 0x19], 2
jb 0x41a73b
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x58
pop ecx
call fcn.00419724
mov dword [ebp - 4], 2
jmp 0x41a755
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
xor edi, edi
mov dword [ebp - 4], 3
test esi, esi
je 0x41a760
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
call fcn.00421200
ret 0x10