Function at 0x404e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x42e43c]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
push 0x18c
mov ebx, ecx
lea eax, [esp + 0x160]
push 0
mov ecx, 0x1f
mov esi, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment_
lea edi, [esp + 0xe8]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040f840
mov edi, 8
add esp, 0xc
mov dword [esp + 0x14], 0
cmp dword [ebx + 0x430], edi
jb 0x404eb6
mov eax, dword [ebx + 0x41c]
jmp 0x404ebc
lea eax, [ebx + 0x41c]
push eax
lea ecx, [esp + 0x1c]
push 0x64
push ecx
call fcn.0040d6ac
push str._Module:_
lea edx, [esp + 0x28]
push 0x64
push edx
call fcn.0040d5de
push str.Opening_registry_Key
lea eax, [esp + 0x34]
push 0x64
push eax
call fcn.0040d5de
mov eax, dword [ebx + 0x434]
add esp, 0x24
lea ecx, [esp + 0x18]
push ecx
mov esi, 0x64
call fcn.00402c20
cmp dword [ebx + 0x430], edi
jb 0x404f13
mov eax, dword [ebx + 0x41c]
jmp 0x404f19
lea eax, [ebx + 0x41c]
push eax
lea edx, [esp + 0x1c]
push 0x64
push edx
call fcn.0040d6ac
push str._Module:_
lea eax, [esp + 0x28]
push 0x64
push eax
call fcn.0040d5de
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x34]
push 0x64
push edx
call fcn.0040d5de
add esp, 0x24
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x434]
call fcn.00402c20
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
lea edx, [esp + 0xec]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405020
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xe4]
push ecx
push 0
push 0
push str.PROCESSOR_ARCHITECTURE
push edx
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405020
push str._nProcessor_Architecture_value_successfully_found__n
mov eax, esi
lea edi, [esp + 0x1c]
call fcn.00401040
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xe0]
push str.amd64
push ecx
call fcn.0040dd0e
add esp, 8
add ebx, 0x444
test eax, eax
jne 0x404ff0
push 0x428bfc
jmp 0x404ff8
lea edx, [esp + 0xe0]
push edx
push 0x104
push ebx
call fcn.0040d6ac
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0040cf24
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x430], edi
jb 0x405030
mov eax, dword [ebx + 0x41c]
jmp 0x405036
lea eax, [ebx + 0x41c]
push eax
lea eax, [esp + 0x1c]
push 0x64
push eax
call fcn.0040d6ac
push str._Module:_
lea ecx, [esp + 0x28]
push 0x64
push ecx
call fcn.0040d5de
push str._nFailed_opening_registry_Key
lea edx, [esp + 0x34]
push 0x64
push edx
call fcn.0040d5de
add esp, 0x24
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x434]
call fcn.00402c20
cmp dword [ebx + 0x430], edi
jb 0x405088
mov eax, dword [ebx + 0x41c]
jmp 0x40508e
lea eax, [ebx + 0x41c]
push eax
lea ecx, [esp + 0x1c]
push 0x64
push ecx
call fcn.0040d6ac
push str._Module:_
lea edx, [esp + 0x28]
push 0x64
push edx
call fcn.0040d5de
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x34]
push 0x64
push ecx
call fcn.0040d5de
mov eax, dword [ebx + 0x434]
add esp, 0x24
lea edx, [esp + 0x18]
push edx
call fcn.00402c20
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040cf24
mov esp, ebp
pop ebp
ret