Function at 0x456e30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ea034
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], 1
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
mov eax, 4
lea ecx, [esp + 0x38]
push ecx
add esi, eax
lea edx, [esp + 0x14]
push esi
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
call fcn.004029d0
mov byte [esp + 0x3c], 3
push 1
push str.SeBackupPrivilege
call fcn.004913e0
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45700d
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SeBackupPrivilege
call fcn.004913e0
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_4481]
cmp byte [0x103a972], 0
je 0x456fb1
push 0
push str.TC_ENV
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
jne 0x456f54
push 0
push 0x50e740
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
cmp eax, 0xffffffff
je 0x456fb1
mov edx, dword [esp + 0x3c]
xor esi, esi
xor bl, bl
cmp dword [edx - 0xc], esi
jle 0x456f90
mov edi, dword [sym.imp.MSVCR90.dll_toupper]
jmp 0x456f70
push esi
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_899]
movsx eax, al
push eax
call edi
mov ecx, dword [esp + 0x40]
inc esi
add esp, 4
add bl, al
cmp esi, dword [ecx - 0xc]
jl 0x456f70
movsx eax, bl
and eax, 0x8000001f
jns 0x456f9f
dec eax
or eax, 0xffffffe0
inc eax
movsx ecx, al
mov eax, dword [esp + 0x14]
and ecx, 0x1f
rol eax, cl
mov dword [esp + 0x14], eax
jmp 0x456fb5
mov eax, dword [esp + 0x14]
mov esi, eax
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
push 0
push str.SeBackupPrivilege
call fcn.004913e0
add esp, 8
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc