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

Disassembly:
push ebp
sub esp, 0x6a4
lea ebp, [esp - 4]
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x6a4], eax
push 0x54
mov eax, 0x622ebb
call fcn.00409179
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.00553ab0
mov dword [ebp - 4], esi
call fcn.00559bcc
test al, al
je 0x58448f
push 0x677c1c
mov ecx, edi
call fcn.004220de
lea ecx, [ebp - 0x24]
call fcn.00553477
mov eax, edi
jmp 0x584727
call fcn.00559e27
test al, al
je 0x5844ff
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.004220de
xor ebx, ebx
lea eax, [ebp - 0x60]
inc ebx
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], bl
call fcn.004d3917
mov ecx, eax
call fcn.004d330a
cmp word [eax], 0x5c
je 0x5844e8
push 0x5c
push ebx
lea ecx, [ebp + 0x70]
call fcn.00421c79
lea eax, [ebp + 0x70]
push eax
mov ecx, edi
call fcn.00420b0c
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.004034e8
jmp 0x584480
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SYSTEMSetup
push reloc.WS2_32.dll_bind
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.0055dae8
sub esp, 0x18
lea eax, [ebp + 0x294]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004220de
lea eax, [ebp + 0x1c]
push eax
call fcn.0055f6e7
add esp, 0x20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esi
call fcn.00557dfe
test eax, eax
jbe 0x584662
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.004d907b
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.004d3498
pop ecx
pop ecx
push 0x66bb20
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.004220de
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 5
call fcn.00420bae
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.00421d1b
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.004034e8
sub esp, 0x1c
lea eax, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00420b0c
lea eax, [ebp]
push eax
call fcn.0055f6e7
add esp, 0x20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0042aba4
test eax, eax
je 0x58474a
push esi
push ebx
lea ecx, [ebp]
call fcn.004034e8
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.004034e8
push esi
push ebx
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.004034e8
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00557dfe
cmp dword [ebp - 0x18], eax
jb 0x58459e
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
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.004220de
push 2
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 8
call fcn.00420bae
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.00420a4f
push esi
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.004034e8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x38]
push eax
call fcn.00420b0c
lea ecx, [ebp + 0x38]
push esi
push ebx
call fcn.004034e8
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004034e8
lea ecx, [ebp - 0x34]
call fcn.0040592c
lea ecx, [ebp - 0x24]
call fcn.00553477
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.0040916a
add ebp, 0x6a8
leave
ret
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x54]
push eax
call fcn.00420b0c
push esi
push ebx
lea ecx, [ebp]
call fcn.004034e8
push esi
push ebx
lea ecx, [ebp + 0x70]
call fcn.004034e8
lea ecx, [ebp + 0x54]
jmp 0x584703