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

Disassembly:
mov eax, 0x6621b31d
call fcn.6620d014
sub esp, 0x5c4
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.66202e10
add esp, 0xc
lea ecx, [ebp - 0x310]
call fcn.662031a0
push esi
lea eax, [ebp - 0x310]
mov dword [ebp - 4], ebx
push eax
push dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.66205e70
add esp, 0xc
test al, al
jne 0x66201169
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.662010cc
lea ecx, [ebp - 0x470]
call fcn.662031a0
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 1
push eax
sub esp, 0xb0
lea eax, [ebp - 0x310]
mov ecx, esp
push eax
call fcn.66202f60
call fcn.6620169a
add esp, 0xb4
test al, al
je 0x66201267
push 0xffffffffffffffff
lea ecx, [ebp - 0x310]
call fcn.662037e0
push eax
lea ecx, [ebp - 0xd0]
call fcn.66203100
mov esi, dword [ebp - 0xcc]
push 0x6621c31c
mov byte [ebp - 4], 2
call fcn.6620cd31
pop ecx
sub esi, eax
lea ecx, [ebp - 0xd0]
push esi
lea eax, [ebp - 0x5d0]
push eax
call fcn.662043b0
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.66203f30
lea ecx, [ebp - 0x5d0]
mov byte [ebp - 4], 2
call fcn.66203220
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621c324
push 1
lea ecx, [ebp - 0xd0]
call fcn.662033b0
push ebx
push ebx
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x470]
push dword [ebp - 0xd0]
push 1
call fcn.662033b0
sub esp, 0xb0
lea eax, [ebp - 0x470]
mov ecx, esp
push eax
call fcn.66202f60
call fcn.66202141
add esp, 0xb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.66203220
lea ecx, [ebp - 0x260]
call fcn.662049a0
push ebx
mov esi, 0xa0100000
mov byte [ebp - 4], 4
push esi
push 1
push dword [ebp - 0x310]
lea ecx, [ebp - 0x260]
call fcn.66205830
test eax, eax
jns 0x662012ac
push dword [ebp - 0x260]
push str._ls_is_corrupted_or_inaccessible.
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call fcn.662010cc
lea ecx, [ebp - 0x520]
call fcn.662031a0
mov ecx, dword [ebp - 0xe8]
push 0xffffffffffffffff
push str.UpgradePath
mov byte [ebp - 4], 5
call fcn.662048c0
push eax
lea ecx, [ebp - 0x520]
call fcn.662041e0
lea ecx, [ebp - 0x3c0]
call fcn.662031a0
lea eax, [ebp - 0x3c0]
mov byte [ebp - 4], 6
push eax
call fcn.6620161b
pop ecx
test al, al
jne 0x66201320
push ebx
lea ecx, [ebp - 0x3c0]
call fcn.66203cc0
lea eax, [ebp - 0x520]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x260]
call fcn.6620146b
add esp, 0xc
cmp dword [ebp - 0x3bc], 0
je 0x66201356
lea ecx, [ebp - 0x260]
call fcn.66204ba0
push dword [ebp - 0x3c0]
lea ecx, [ebp - 0x260]
push esi
push 1
push dword [ebp - 0x310]
call fcn.66205830
test eax, eax
js 0x66201294
push dword [ebp - 0x260]
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 - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.66205340
add esp, 0x2c
test eax, eax
jns 0x662013a3
push ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x66201163
mov eax, dword [ebp - 0x260]
mov esi, dword [ebp - 0xec]
mov edi, dword [ebp - 0x1b0]
mov ebx, dword [ebp - 0xf0]
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 ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
test eax, eax
jns 0x662013e7
push 0
jmp 0x66201397
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c0]
mov byte [ebp - 4], 5
call fcn.66203220
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 4
call fcn.66203220
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.66204a50
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0
call fcn.66203220
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.66203220
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret