Function at 0x6620107a
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
mov eax, 0x66215e7d
call fcn.6620b838
sub esp, 0x5c8
push ebx
push edi
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push ebx
push esi
push str.boot_loader.exe
call fcn.66206210
add esp, 0xc
lea ecx, [ebp - 0x314]
call fcn.66202d60
push esi
lea eax, [ebp - 0x314]
push eax
push dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ebx
call fcn.66203d20
add esp, 0xc
test al, al
jne 0x662010dc
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66201056
lea ecx, [ebp - 0x474]
call fcn.66202d60
lea esi, [ebp - 0x474]
push esi
sub esp, 0xb0
mov ecx, esp
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x314]
push eax
mov byte [ebp - 4], 1
call fcn.662034b0
call fcn.66201c22
sub esp, 0xffffff4c
cmp al, bl
je 0x662011d1
push 0xffffffffffffffff
lea ecx, [ebp - 0x314]
call fcn.66202ae0
push eax
lea ecx, [ebp - 0x264]
call fcn.66203530
mov edi, dword [ebp - 0x260]
push 0x6621735c
mov byte [ebp - 4], 2
call fcn.6620b438
pop ecx
sub edi, eax
push edi
lea eax, [ebp - 0x5d4]
lea ecx, [ebp - 0x264]
push eax
call fcn.662036e0
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.66203280
lea ecx, [ebp - 0x5d4]
mov byte [ebp - 4], 2
call fcn.66203260
push ebx
lea ecx, [ebp - 0x264]
push ebx
push 0xffffffffffffffff
push 0x66217354
push 1
call fcn.66202f40
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x474]
call fcn.66201008
add esp, 0xffffff50
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.662034b0
call fcn.6620142f
mov byte [ebp - 4], 1
add esp, 0xb0
lea ecx, [ebp - 0x264]
call fcn.66203260
lea ecx, [ebp - 0x1b4]
call fcn.662043b0
mov esi, 0xa0100000
lea ecx, [ebp - 0x1b4]
push ebx
push esi
push 1
push dword [ebp - 0x314]
mov byte [ebp - 4], 4
call fcn.66205710
cmp eax, ebx
jge 0x66201216
push dword [ebp - 0x1b4]
push str._ls_is_corrupted_or_inaccessible.
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.66201056
lea ecx, [ebp - 0x524]
call fcn.66202d60
mov ecx, dword [ebp - 0x3c]
push 0xffffffffffffffff
push str.UpgradePath
mov byte [ebp - 4], 5
call fcn.662057d0
lea ecx, [ebp - 0x524]
push eax
call fcn.662032c0
lea ecx, [ebp - 0x3c4]
call fcn.66202d60
lea eax, [ebp - 0x3c4]
push eax
mov byte [ebp - 4], 6
call fcn.66202460
or al, al
pop ecx
jne 0x66201287
push ebx
lea ecx, [ebp - 0x3c4]
call fcn.66203610
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x104]
push dword [ebp - 0x1b4]
call fcn.662022af
add esp, 0xc
cmp dword [ebp - 0x3c0], ebx
je 0x662012bc
lea ecx, [ebp - 0x1b4]
call fcn.66204490
lea ecx, [ebp - 0x1b4]
push dword [ebp - 0x3c4]
push esi
push 1
push dword [ebp - 0x314]
call fcn.66205710
cmp eax, ebx
jl 0x662011fe
push dword [ebp - 0x1b4]
push str.TS_ORIGIN
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea esi, [ebp - 0x18]
push ebx
push esi
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x1c]
push esi
push eax
push str.Nt0RunFirstProcess
push ebx
push ebx
lea eax, [ebp - 0x1b4]
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x1b4]
call fcn.66205140
add esp, 0x30
cmp eax, ebx
jge 0x6620130a
push ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x662010d6
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x104]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push edi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
cmp eax, ebx
jl 0x662012fd
lea ecx, [ebp - 0x3c4]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.66203260
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 4
call fcn.66203260
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
call fcn.66204a60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x474]
call fcn.66203260
lea ecx, [ebp - 0x314]
or dword [ebp - 4], 0xffffffff
call fcn.66203260
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret