Function at 0x5a8cad
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x6a4
lea ebp, [esp - 4]
mov eax, dword [0x6d15dc]
xor eax, ebp
mov dword [ebp + 0x6a4], eax
push 0x54
mov eax, 0x61a72a
call fcn.0057938a
mov edi, dword [ebp + 0x6b0]
xor esi, esi
push str.getOsBootPath
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
call fcn.00567f27
mov dword [ebp - 4], esi
call fcn.0056bdf9
test al, al
je 0x5a8d13
push 0x64db90
mov ecx, edi
call fcn.0041ec40
lea ecx, [ebp - 0x24]
call fcn.00566b7e
mov eax, edi
jmp 0x5a8fab
call fcn.0056c21d
test al, al
je 0x5a8d83
push 0x104
lea eax, [ebp + 0x8c]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x70]
call fcn.0041ec40
xor ebx, ebx
lea eax, [ebp - 0x60]
inc ebx
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], bl
call fcn.005a8c88
mov ecx, eax
call fcn.005a8c46
cmp word [eax], 0x5c
je 0x5a8d6c
push 0x5c
push ebx
lea ecx, [ebp + 0x70]
call fcn.0049c4e5
lea eax, [ebp + 0x70]
push eax
mov ecx, edi
call fcn.00418815
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418ad9
jmp 0x5a8d04
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SYSTEMSetup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x294]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push str.SystemPartition
push dword [ebp - 0x14]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov word [ebp + eax*2 + 0x294], si
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x34]
push eax
call fcn.005e6f9c
sub esp, 0x18
lea eax, [ebp + 0x294]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.0041ec40
lea eax, [ebp + 0x1c]
push eax
call fcn.005737c9
add esp, 0x20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
call fcn.004285cf
test eax, eax
jbe 0x5a8ee6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0047a657
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.005a8c69
pop ecx
pop ecx
push 0x643208
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0041ec40
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.004188a2
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.004195be
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00418ad9
sub esp, 0x1c
lea eax, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00418815
lea eax, [ebp]
push eax
call fcn.005737c9
add esp, 0x20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0041f8c8
test eax, eax
je 0x5a8fce
push esi
push ebx
lea ecx, [ebp]
call fcn.00418ad9
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418ad9
push esi
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.00418ad9
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.004285cf
cmp dword [ebp - 0x18], eax
jb 0x5a8e22
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x49c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push str.SystemRoot
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov word [ebp + eax*2 + 0x49c], si
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x49c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0041ec40
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 8
call fcn.004188a2
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.004189d3
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.00418ad9
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x38]
push eax
call fcn.00418815
lea ecx, [ebp + 0x38]
push esi
push ebx
call fcn.00418ad9
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00418ad9
lea ecx, [ebp - 0x34]
call fcn.00432429
lea ecx, [ebp - 0x24]
call fcn.00566b7e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6a4]
xor ecx, ebp
call fcn.0057937b
add ebp, 0x6a8
leave
ret
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x54]
push eax
call fcn.00418815
push esi
push ebx
lea ecx, [ebp]
call fcn.00418ad9
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418ad9
lea ecx, [ebp + 0x54]
jmp 0x5a8f87