Function at 0x401cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x60], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x401d43
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], ecx
mov edi, ecx
jmp 0x401d55
jg 0x401d4b
mov edi, dword [esp + 0x18]
jmp 0x401d55
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebp
jl 0x4020a3
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
lea edx, [esp + 0x2c]
push edx
push ebp
push 4
push edi
mov dword [esp + 0x3c], ebp
call esi
cmp eax, 0x7a
jne 0x401dac
mov eax, dword [esp + 0x2c]
push eax
call fcn.00407458
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x30], ebx
je 0x4020a3
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push ebx
call fcn.0040b3b0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push ebx
push 4
push edi
call esi
cmp eax, ebp
jle 0x401dbc
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebp
jl 0x40206a
lea eax, [esp + 0x14]
push eax
push 0x41ca9c
mov dword [esp + 0x1c], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jle 0x401ded
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40206a
test edi, edi
je 0x401dfe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0
push 4
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call esi
cmp eax, 0x7a
jne 0x401e57
mov edx, dword [esp + 0x14]
push edx
call fcn.00407458
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x40206a
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
push eax
push 0
push ebx
call fcn.0040b3b0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
push 4
push edi
call esi
test eax, eax
jle 0x401e67
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40206a
mov edx, dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push edx
push 4
push edi
call ebx
test eax, eax
jle 0x401e8d
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40206a
lea eax, [esp + 0x20]
push eax
push 0x41ca9c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
jle 0x401eba
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x401f64
test edi, edi
je 0x401ecf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push 0x41ca98
push edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], 0
call ebp
test eax, eax
jle 0x401f09
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x401f64
mov eax, dword [esp + 0x24]
push eax
call fcn.00407458
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x401f2b
mov esi, 0x8007000e
jmp 0x401f64
mov ecx, dword [esp + 0x24]
push ecx
push 0
push eax
call fcn.0040b3b0
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x41ca98
push edi
call ebp
test eax, eax
jle 0x401f62
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push edx
push 4
push eax
call ebx
test esi, esi
jl 0x40206a
mov eax, dword [esp + 0x24]
test al, 3
jne 0x40206a
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + ecx - 0x14]
cmp ebx, ecx
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 5
jb 0x40206a
mov edi, 0x15
lea esp, [esp]
cmp dword [ebx + 8], edi
jne 0x402050
mov eax, 6
lea ecx, [esp + 0x38]
lea edx, [ebx + 2]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401fed
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401fd5
test eax, eax
je 0x40204a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40203c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40204a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40203c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40204a
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x40203c
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40204a
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x40204a
test esi, esi
mov eax, 1
jg 0x40204c
or eax, 0xffffffff
jmp 0x40204c
xor eax, eax
test eax, eax
je 0x40205f
sub ebx, 4
cmp ebx, dword [esp + 0x1c]
jae 0x401fc0
jmp 0x40206a
mov edx, dword [esp + 0x34]
push edx
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
je 0x40207d
push eax
call fcn.0040b394
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40208e
push eax
call fcn.0040b394
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40209f
push eax
call fcn.0040b394
add esp, 4
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x4020ae
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b399
add esp, 0x3c
ret