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

Disassembly:
push ebp
sub esp, 0x6a4
lea ebp, [esp - 4]
mov eax, dword [0x6d25dc]
xor eax, ebp
mov dword [ebp + 0x6a4], eax
push 0x54
mov eax, 0x61ae9a
call fcn.00579aba
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.0056864c
mov dword [ebp - 4], esi
call fcn.0056c51e
test al, al
je 0x5a9433
push 0x64eae0
mov ecx, edi
call fcn.0041f133
lea ecx, [ebp - 0x24]
call fcn.005672a3
mov eax, edi
jmp 0x5a96cb
call fcn.0056c942
test al, al
je 0x5a94a3
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.0041f133
xor ebx, ebx
lea eax, [ebp - 0x60]
inc ebx
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], bl
call fcn.005a93a8
mov ecx, eax
call fcn.005a9366
cmp word [eax], 0x5c
je 0x5a948c
push 0x5c
push ebx
lea ecx, [ebp + 0x70]
call fcn.0049cc0a
lea eax, [ebp + 0x70]
push eax
mov ecx, edi
call fcn.00418d08
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418fcc
jmp 0x5a9424
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.005e76cb
sub esp, 0x18
lea eax, [ebp + 0x294]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.0041f133
lea eax, [ebp + 0x1c]
push eax
call fcn.00573eee
add esp, 0x20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
call fcn.00428ac2
test eax, eax
jbe 0x5a9606
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0047ac82
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.005a9389
pop ecx
pop ecx
push 0x644150
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0041f133
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.00418d95
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.00419ab1
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00418fcc
sub esp, 0x1c
lea eax, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00418d08
lea eax, [ebp]
push eax
call fcn.00573eee
add esp, 0x20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0041fdbb
test eax, eax
je 0x5a96ee
push esi
push ebx
lea ecx, [ebp]
call fcn.00418fcc
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418fcc
push esi
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.00418fcc
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00428ac2
cmp dword [ebp - 0x18], eax
jb 0x5a9542
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.0041f133
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 8
call fcn.00418d95
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.00418ec6
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.00418fcc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x38]
push eax
call fcn.00418d08
lea ecx, [ebp + 0x38]
push esi
push ebx
call fcn.00418fcc
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00418fcc
lea ecx, [ebp - 0x34]
call fcn.0043281e
lea ecx, [ebp - 0x24]
call fcn.005672a3
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.00579aab
add ebp, 0x6a8
leave
ret
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x54]
push eax
call fcn.00418d08
push esi
push ebx
lea ecx, [ebp]
call fcn.00418fcc
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00418fcc
lea ecx, [ebp + 0x54]
jmp 0x5a96a7