Function at 0x404250
Capabilities:
Access peb ldr_data
Get ntdll base address
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x419ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
lea eax, [esp + 0x10]
push edi
mov esi, ecx
push eax
call fcn.00403f60
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push str.SOFTWAREWhiteKnightProtectorJVSpawnerRegData_
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
mov edi, 1
call fcn.0041108a
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 6
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call fcn.00410e74
test bl, bl
je 0x4042d3
xor edi, edi
mov edx, dword [esi + 0x90]
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x10], edx
je 0x40430d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x425814
push ecx
call edi
test eax, eax
je 0x404369
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push str.SOFTWAREWhiteKnightProtectorJVSpawnerRegData_
push edx
call fcn.0041108a
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 6
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call fcn.00410e74
test bl, bl
je 0x40445d
push 0
push 0x10
push str.Failed_to_save_Value_X_to_registry
call fcn.00417296
jmp 0x404615
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x404381
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404615
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x88]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push 0x4257ec
push eax
mov dword [esp + 0x28], ecx
call edi
test eax, eax
je 0x4043c4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_A_to_registry
call fcn.00417296
jmp 0x404615
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x8c]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x4257c4
push ecx
mov dword [esp + 0x28], edx
call edi
test eax, eax
je 0x404407
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_B_to_registry
call fcn.00417296
jmp 0x404615
mov ecx, esi
call fcn.004041a0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x42579c
push ecx
call edi
test eax, eax
je 0x40444b
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_C_to_registry
call fcn.00417296
jmp 0x404615
mov eax, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
jmp 0x404593
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x425814
push ecx
mov dword [esp + 0x28], edx
call edi
test eax, eax
je 0x4044a0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_T_to_registry
call fcn.00417296
jmp 0x404615
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4044b8
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404615
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x88]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push 0x4257ec
push eax
mov dword [esp + 0x28], ecx
call edi
test eax, eax
je 0x4044fb
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_A_to_registry
call fcn.00417296
jmp 0x404615
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x8c]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x4257c4
push ecx
mov dword [esp + 0x28], edx
call edi
test eax, eax
je 0x40453e
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_B_to_registry
call fcn.00417296
jmp 0x404615
mov ecx, esi
call fcn.004041a0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x42579c
push ecx
call edi
test eax, eax
je 0x404582
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x10
push str.Failed_to_save_Value_C_to_registry
call fcn.00417296
jmp 0x404615
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 6
push 0
push 0
push 0
push str.SOFTWAREPoliciesVXTSysRegData
push 0x80000002
call esi
test eax, eax
jne 0x4045d7
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 6
push 0
push 0
push 0
push str.SOFTWAREPoliciesExtVXTSysRegData
push 0x80000002
call esi
test eax, eax
jne 0x404615
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00410e74
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4