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

Disassembly:
mov eax, 0x6621612d
call fcn.6620bae8
sub esp, 0x5c8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push ebx
push esi
push str.boot_loader.exe
call fcn.66206320
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.66203ee0
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 eax, [ebp - 0x474]
push eax
sub esp, 0xb0
lea eax, [ebp - 0x314]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 1
call fcn.66203610
call fcn.66201c20
add esp, 0xb4
cmp al, bl
je 0x662011d1
push 0xffffffffffffffff
lea ecx, [ebp - 0x314]
call fcn.66202ae0
push eax
lea ecx, [ebp - 0x264]
call fcn.66203690
mov esi, dword [ebp - 0x260]
push 0x6621736c
mov byte [ebp - 4], 2
call fcn.6620b6e8
pop ecx
sub esi, eax
push esi
lea eax, [ebp - 0x5d4]
push eax
lea ecx, [ebp - 0x264]
call fcn.662038a0
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
push ebx
push 0xffffffffffffffff
push 0x66217364
push 1
lea ecx, [ebp - 0x264]
call fcn.66202f40
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x474]
call fcn.66201008
sub esp, 0xb0
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.66203610
call fcn.6620142e
add esp, 0xb0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.66203260
lea ecx, [ebp - 0x1b4]
call fcn.66204550
push ebx
mov esi, 0xa0100000
push esi
push 1
push dword [ebp - 0x314]
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.662057a0
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.66205860
push eax
lea ecx, [ebp - 0x524]
call fcn.662032c0
lea ecx, [ebp - 0x3c4]
call fcn.66202d60
lea eax, [ebp - 0x3c4]
push eax
mov byte [ebp - 4], 6
call fcn.6620245e
pop ecx
test al, al
jne 0x66201287
push ebx
lea ecx, [ebp - 0x3c4]
call fcn.662037d0
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x104]
push dword [ebp - 0x1b4]
call fcn.662022ad
add esp, 0xc
cmp dword [ebp - 0x3c0], ebx
je 0x662012bc
lea ecx, [ebp - 0x1b4]
call fcn.66204630
push dword [ebp - 0x3c4]
lea ecx, [ebp - 0x1b4]
push esi
push 1
push dword [ebp - 0x314]
call fcn.662057a0
cmp eax, ebx
jl 0x662011fe
push dword [ebp - 0x1b4]
push str.TS_ORIGIN
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Nt0RunFirstProcess
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b4]
call fcn.66205200
add esp, 0x2c
cmp eax, ebx
jge 0x66201309
push ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x662010d6
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x104]
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 esi
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
cmp eax, ebx
jl 0x662012fc
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c4]
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.66204bc0
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], bl
call fcn.66203260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x314]
call fcn.66203260
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret