Function at 0x406b20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447111
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
push 0x44de0b
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00401fc0
cmp dword [esp + 0x144], 0
mov dword [esp + 0x138], 0
je 0x406c31
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x45da49
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406bdb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406da0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.Path
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406c20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d81
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406d81
lea edx, [esp + 0x10]
push edx
push 1
push 0
push 0x45e281
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406c5e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d81
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.realPath
push ecx
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406ca3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406d81
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push 0x44e0d0
push edx
call fcn.00402100
add esp, 0xc
call fcn.00412914
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406cd4
push 0x80004005
call fcn.004025c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0xc]
push 0x5c
push ecx
call fcn.004322d2
add esp, 8
test eax, eax
jne 0x406d04
or eax, 0xffffffff
jmp 0x406d08
sub eax, dword [esp + 0xc]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.00401b20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 2
call fcn.004021c0
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi - 0x10]
mov byte [esp + 0x138], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00430bec
add esp, 0x130
ret 8