Function at 0x402510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b0
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
add eax, 0x3c
push eax
call fcn.004012b0
add esp, 4
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x14
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401280
add esp, 4
movzx ecx, ax
xor edx, edx
cmp ecx, 0x8664
sete dl
mov dword [ebp - 0x10], edx
xor eax, eax
cmp dword [ebp - 0x10], 0
sete al
lea eax, [eax*4 + 0x18]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x60
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x68
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401310
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov eax, dword [section..data]
cmp eax, dword [ebp - 0x10]
je 0x40264f
cmp dword [0x40a958], 0
jne 0x402604
push str.MAYA.EXE
mov eax, dword [0x40a0a0]
push eax
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x402602
push str.MAYABATCH.EXE
mov eax, dword [0x40a0a0]
push eax
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x402604
jmp 0x40264f
cmp dword [ebp + 8], 0
je 0x402615
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6b0], eax
jmp 0x40261f
mov dword [ebp - 0x6b0], str._unknown_
mov ecx, dword [section..data]
neg ecx
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0x6b0]
push edx
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
push eax
push str.The__d_bit_DLL__s_was_loaded_into_a__d_bit_application._r_nArchitecture_of_DLLs_and_applications_must_match_for_successful_program_operation.
call fcn.00404d20
cmp dword [ebp - 0x20], 0
jne 0x402667
push str.____This_DLL_contains_no_import_directory___skipping_r_n
call fcn.00401400
add esp, 4
jmp 0x40287c
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push str.SOFTWAREVXsoftVxKexLdrDllRewrite
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4026a2
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404c60
push eax
push str.Failed_to_open_DLL_rewrite_registry_key:__s
call fcn.00404d20
mov dword [ebp - 0x30], 0
jmp 0x4026b4
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x14
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0xc
push eax
call fcn.004012b0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x65c], 0x104
cmp dword [ebp - 0x3c], 0
jne 0x4026f0
jmp 0x402818
push 0x208
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00401340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x450]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x658]
push ecx
push 0
push 0
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4027f6
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov dword [ebp - 0x660], eax
lea eax, [ebp - 0x658]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov dword [ebp - 0x664], eax
mov eax, dword [ebp - 0x664]
cmp eax, dword [ebp - 0x660]
jbe 0x4027bf
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x664]
push ecx
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x658]
push eax
push str.____WARNING:_The_rewrite_DLL_name__s_for_original_DLL__s_is_too_long._It_is__u_bytes_but_the_maximum_is__u._Skipping._r_n
call fcn.00401400
add esp, 0x14
jmp 0x4027f4
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x450]
push ecx
push str.____Rewriting_DLL_import__s_____s_r_n
call fcn.00401400
add esp, 0xc
lea eax, [ebp - 0x658]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004011f0
add esp, 8
jmp 0x402813
cmp dword [ebp - 0x34], 0xea
jne 0x402813
lea eax, [ebp - 0x450]
push eax
push str.____WARNING:_The_rewrite_DLL_registry_entry_for_the_DLL__s_contains_invalid_data._Skipping._r_n
call fcn.00401400
add esp, 8
jmp 0x4026ab
cmp dword [ebp - 0x28], 0
je 0x402872
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0xb8
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x668], eax
mov eax, dword [ebp - 0x668]
push eax
call fcn.004012b0
add esp, 4
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0
je 0x402872
push str.____Found_a_Bound_Import_Directory___zeroing_r_n
call fcn.00401400
add esp, 4
push 0
mov eax, dword [ebp - 0x668]
push eax
call fcn.00401160
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret