Function at 0x401943
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401949
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.00403000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00403000
push dword [esp]
call fcn.00402422
push dword [esp + 8]
mov edx, 0x4080dc
pop ecx
call fcn.004030b0
je 0x4019e8
cmp dword [0x409130], 0
je 0x4019cc
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
push 0
push dword [0x409120]
push dword [0x40912c]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4019e6
lea eax, [esp + 0x10]
push eax
push dword [0x409120]
push dword [0x40912c]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x401a4d
lea eax, [esp + 0x18]
push eax
push dword [0x40912c]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x409130], 0
je 0x401a35
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x409134]
or ebx, 0xf003f
push ebx
push 0
push dword [0x409120]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x401a4d
lea eax, [esp + 0x10]
push eax
push dword [0x409120]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x401d10
mov dword [esp + 0x1c], 0xff
push dword [0x409158]
push dword [0x409158]
push 0xff
call fcn.00403200
lea eax, [esp + 0x24]
push eax
call fcn.00405f80
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 0x401d10
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401b27
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 0x401b14
push dword [0x409158]
push dword [0x409158]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00403250
lea eax, [esp + 0x30]
push eax
call fcn.00405f80
jmp 0x401b22
mov edx, 0x408028
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401d0f
mov ebx, 2
cmp ebx, dword [esp]
jne 0x401b98
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 0x401b85
push dword [0x409158]
push dword [0x409158]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00403250
lea eax, [esp + 0x30]
push eax
call fcn.00405f80
jmp 0x401b93
mov edx, 0x408028
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401d0f
mov ebx, 4
cmp ebx, dword [esp]
jne 0x401c06
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 0x401bf3
push dword [0x409158]
push dword [0x409158]
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.00403790
lea eax, [esp + 0x30]
push eax
call fcn.00405f80
jmp 0x401c01
mov edx, 0x4080e0
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401d0f
mov ebx, 3
cmp ebx, dword [esp]
jne 0x401d0f
mov dword [esp + 0x38], 0x400
push dword [esp + 0x38]
call fcn.004049e0
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 0x401d0f
mov edx, 0x408028
lea ecx, [esp + 0x2c]
call fcn.00403008
mov dword [esp + 0x44], 0
jmp 0x401c71
mov ebx, dword [esp + 0x38]
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x401d06
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x44]
push ebx
pop eax
call fcn.00403090
mov ebx, eax
and ebx, 0xff
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jge 0x401cc9
mov edx, dword [esp + 0x2c]
push dword [0x409158]
push edx
call fcn.00406000
mov edx, 0x4080e0
push edx
call fcn.00406000
lea eax, [esp + 0x30]
push eax
call fcn.00405f80
mov edx, dword [esp + 0x2c]
push dword [0x409158]
push edx
call fcn.00406000
push dword [0x409158]
push dword [0x409158]
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
call fcn.004039d0
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.00405f80
inc dword [esp + 0x44]
jno 0x401c71
push dword [esp + 0x3c]
call fcn.00404a00
pop eax
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x409158]
push edx
call fcn.00406000
pop eax
add eax, dword [0x4087c0]
jmp 0x401d42
push dword [esp + 8]
call fcn.00406060
push dword [esp + 0x20]
call fcn.00406060
push dword [esp]
call fcn.00406060
push dword [esp + 4]
call fcn.00406060
push dword [esp + 0x28]
call fcn.00406060
add esp, 0x48
pop ebx
ret 0xc