Function at 0x404640
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x20]
xor edi, edi
push eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.00403f60
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push str.SOFTWAREWhiteKnightProtectorJVSpawnerRegData_
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 4
call fcn.0041108a
mov eax, dword [eax]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 1
push edi
push eax
push 0x80000002
call ebp
test eax, eax
lea ecx, [esp + 0x24]
setne bl
call fcn.00410e74
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4047ed
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
push 0x425814
push edx
call ebx
test eax, eax
jne 0x4047ed
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x4047ed
cmp dword [esp + 0x10], eax
jne 0x4047ed
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esi + 0x90], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
push 0x4257ec
push edx
call ebx
test eax, eax
jne 0x404754
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x404754
cmp dword [esp + 0x10], eax
jne 0x404754
mov eax, dword [esp + 0x14]
mov dword [esi + 0x88], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push edi
push 0x4257c4
push ecx
call ebx
test eax, eax
jne 0x404791
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x404791
cmp dword [esp + 0x10], eax
jne 0x404791
mov edx, dword [esp + 0x14]
mov dword [esi + 0x8c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push edi
push 0x42579c
push eax
call ebx
test eax, eax
jne 0x4047d3
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x4047d3
cmp dword [esp + 0x10], eax
jne 0x4047d3
mov ecx, esi
call fcn.004041a0
cmp dword [esp + 0x14], eax
je 0x4047ed
jmp 0x4047e3
cmp dword [esi + 0x88], edi
jne 0x4047e3
cmp dword [esi + 0x8c], edi
je 0x4047ed
mov dword [esi + 0x9c], 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push edx
push 1
push edi
push str.SOFTWAREPoliciesVXTSysRegData
push 0x80000002
call ebp
test eax, eax
jne 0x404865
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
push eax
push ecx
call ebx
test eax, eax
jne 0x40485a
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x40485a
cmp dword [esp + 0x10], eax
jne 0x40485a
mov ecx, esi
call fcn.004041a0
cmp dword [esp + 0x14], eax
je 0x40485a
mov dword [esi + 0x9c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
push 1
push edi
push str.SOFTWAREPoliciesExtVXTSysRegData
push 0x80000002
call ebp
test eax, eax
jne 0x4048d2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push edi
push ecx
push edx
call ebx
test eax, eax
jne 0x4048c7
mov ecx, dword [esp + 0x1c]
mov eax, 4
cmp ecx, eax
jne 0x4048c7
cmp dword [esp + 0x10], eax
jne 0x4048c7
mov ecx, esi
call fcn.004041a0
cmp dword [esp + 0x14], eax
je 0x4048c7
mov dword [esi + 0x9c], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00410e74
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret