Function at 0x41641b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416421
call fcn.00430eb0
push dword [esp + 0x5c]
call fcn.00430e60
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.0041b000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.0041b000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.0041b000
push dword [esp]
call fcn.00417a6f
push dword [esp + 8]
mov edx, 0x46f66c
pop ecx
call fcn.00430dc0
je 0x4164ce
cmp dword [0x9e59f4], 0
je 0x4164b2
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x9e5a0c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x9e59d4]
push dword [0x9e59f0]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4164cc
lea eax, [esp + 0x10]
push eax
push dword [0x9e59d4]
push dword [0x9e59f0]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x416533
lea eax, [esp + 0x18]
push eax
push dword [0x9e59f0]
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x9e59f4], 0
je 0x41651b
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x9e5a0c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x9e59d4]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x416533
lea eax, [esp + 0x10]
push eax
push dword [0x9e59d4]
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4167f0
mov dword [esp + 0x1c], 0x400
call fcn.00430c90
push eax
call fcn.00430c90
push eax
push dword [esp + 0x24]
call fcn.0041b390
lea eax, [esp + 0x24]
push eax
call fcn.00430d30
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4167f0
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x41660c
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4165f9
call fcn.00430c90
push eax
call fcn.00430c90
push eax
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.0041bd80
lea eax, [esp + 0x30]
push eax
call fcn.00430d30
jmp 0x416607
mov edx, 0x46f046
lea ecx, [esp + 0x2c]
call fcn.0041b008
jmp 0x4167ef
mov ebx, 2
cmp ebx, dword [esp]
jne 0x41667d
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x41666a
call fcn.00430c90
push eax
call fcn.00430c90
push eax
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.0041bd80
lea eax, [esp + 0x30]
push eax
call fcn.00430d30
jmp 0x416678
mov edx, 0x46f046
lea ecx, [esp + 0x2c]
call fcn.0041b008
jmp 0x4167ef
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4166eb
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4166d8
call fcn.00430c90
push eax
call fcn.00430c90
push eax
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.0041b8d0
lea eax, [esp + 0x30]
push eax
call fcn.00430d30
jmp 0x4166e6
mov edx, 0x46f6c8
lea ecx, [esp + 0x2c]
call fcn.0041b008
jmp 0x4167ef
mov ebx, 3
cmp ebx, dword [esp]
jne 0x4167ef
mov dword [esp + 0x38], 0x400
push dword [esp + 0x38]
call fcn.0042fda0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4167ef
mov edx, 0x46f046
lea ecx, [esp + 0x2c]
call fcn.0041b008
mov dword [esp + 0x44], 0
mov ebx, dword [esp + 0x38]
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x4167e6
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x44]
push ebx
pop eax
call fcn.0042ff90
mov ebx, eax
and ebx, 0xff
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jge 0x4167aa
mov edx, dword [esp + 0x2c]
call fcn.00430c90
push eax
call fcn.00430cd0
mov edx, 0x46f6c8
call fcn.00430cd0
lea eax, [esp + 0x30]
push eax
call fcn.00430d30
mov edx, dword [esp + 0x2c]
call fcn.00430c90
push eax
call fcn.00430cd0
call fcn.00430c90
push eax
call fcn.00430c90
push eax
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
call fcn.0041c4a0
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.00430d30
inc dword [esp + 0x44]
jno 0x416754
push dword [esp + 0x3c]
call fcn.0042ff70
pop eax
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x28]
call fcn.00430c90
push eax
call fcn.00430cd0
pop eax
push eax
call fcn.00430e30
pop edx
add eax, edx
jmp 0x41681e
push dword [esp + 8]
call fcn.00430f50
push dword [esp + 0x20]
call fcn.00430f50
push dword [esp]
call fcn.00430f50
push dword [esp + 4]
call fcn.00430f50
push dword [esp + 0x28]
call fcn.00430f50
add esp, 0x48
pop ebx
ret 0xc