Function at 0x45149a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4514a0
call fcn.004ad560
push dword [esp + 0x5c]
call fcn.004533a0
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.00453000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.00453000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00453000
push dword [esp]
call fcn.00451b47
push dword [esp + 8]
mov edx, 0x538660
pop ecx
call fcn.00453330
je 0x45154d
cmp dword [0x15e7a98], 0
je 0x451531
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x15e7a9c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x15e7a8c]
push dword [0x15e7a94]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x45154b
lea eax, [esp + 0x10]
push eax
push dword [0x15e7a8c]
push dword [0x15e7a94]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x4515b2
lea eax, [esp + 0x18]
push eax
push dword [0x15e7a94]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x15e7a98], 0
je 0x45159a
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x15e7a9c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x15e7a8c]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4515b2
lea eax, [esp + 0x10]
push eax
push dword [0x15e7a8c]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x45188c
mov dword [esp + 0x1c], 0x400
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
push dword [esp + 0x24]
call fcn.004aae10
lea eax, [esp + 0x24]
push eax
call fcn.004ad400
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 0x45188c
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x451693
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 0x451680
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.004ab8f0
lea eax, [esp + 0x30]
push eax
call fcn.004ad400
jmp 0x45168e
mov edx, 0x5370c4
lea ecx, [esp + 0x2c]
call fcn.00453008
jmp 0x45188b
mov ebx, 2
cmp ebx, dword [esp]
jne 0x451708
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 0x4516f5
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.004ab8f0
lea eax, [esp + 0x30]
push eax
call fcn.004ad400
jmp 0x451703
mov edx, 0x5370c4
lea ecx, [esp + 0x2c]
call fcn.00453008
jmp 0x45188b
mov ebx, 4
cmp ebx, dword [esp]
jne 0x45177a
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 0x451767
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.004ab700
lea eax, [esp + 0x30]
push eax
call fcn.004ad400
jmp 0x451775
mov edx, 0x5387f4
lea ecx, [esp + 0x2c]
call fcn.00453008
jmp 0x45188b
mov ebx, 3
cmp ebx, dword [esp]
jne 0x45188b
mov dword [esp + 0x38], 0x400
push dword [esp + 0x38]
call fcn.004ac240
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 0x45188b
mov edx, 0x5370c4
lea ecx, [esp + 0x2c]
call fcn.00453008
mov dword [esp + 0x44], 0
jmp 0x4517e5
mov ebx, dword [esp + 0x38]
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x451882
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x44]
push ebx
pop eax
call fcn.00453300
mov ebx, eax
and ebx, 0xff
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jge 0x45183f
mov edx, dword [esp + 0x2c]
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad490
mov edx, 0x5387f4
push edx
call fcn.004ad490
lea eax, [esp + 0x30]
push eax
call fcn.004ad400
mov edx, dword [esp + 0x2c]
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad490
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad3c0
pop edx
push eax
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
call fcn.004aaf40
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.004ad400
inc dword [esp + 0x44]
jno 0x4517e5
push dword [esp + 0x3c]
call fcn.004ac1e0
pop eax
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push edx
call fcn.004ad3c0
pop edx
push eax
push edx
call fcn.004ad490
pop eax
push eax
call fcn.00453370
pop edx
add eax, edx
jmp 0x4518bd
push dword [esp + 8]
call fcn.004ad5c0
push dword [esp + 0x20]
call fcn.004ad5c0
push dword [esp]
call fcn.004ad5c0
push dword [esp + 4]
call fcn.004ad5c0
push dword [esp + 0x28]
call fcn.004ad5c0
add esp, 0x48
pop ebx
ret 0xc