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

Disassembly:
mov eax, 0x6621b28d
call fcn.6620cf84
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.66202e00
add esp, 0xc
lea ecx, [ebp - 0x310]
call fcn.66203190
push esi
lea eax, [ebp - 0x310]
mov dword [ebp - 4], ebx
push eax
push dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.66205e60
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.66203190
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.66202f50
call fcn.6620169a
add esp, 0xb4
test al, al
je 0x66201267
push 0xffffffffffffffff
lea ecx, [ebp - 0x310]
call fcn.662037d0
push eax
lea ecx, [ebp - 0xd0]
call fcn.662030f0
mov esi, dword [ebp - 0xcc]
push 0x6621c31c
mov byte [ebp - 4], 2
call fcn.6620cca1
pop ecx
sub esi, eax
lea ecx, [ebp - 0xd0]
push esi
lea eax, [ebp - 0x5d0]
push eax
call fcn.662043a0
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.66203f20
lea ecx, [ebp - 0x5d0]
mov byte [ebp - 4], 2
call fcn.66203210
push ebx
push ebx
push 0xffffffffffffffff
push 0x6621c324
push 1
lea ecx, [ebp - 0xd0]
call fcn.662033a0
push ebx
push ebx
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x470]
push dword [ebp - 0xd0]
push 1
call fcn.662033a0
sub esp, 0xb0
lea eax, [ebp - 0x470]
mov ecx, esp
push eax
call fcn.66202f50
call fcn.66202141
add esp, 0xb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.66203210
lea ecx, [ebp - 0x260]
call fcn.66204990
push ebx
mov esi, 0xa0100000
mov byte [ebp - 4], 4
push esi
push 1
push dword [ebp - 0x310]
lea ecx, [ebp - 0x260]
call fcn.66205820
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.66203190
mov ecx, dword [ebp - 0xe8]
push 0xffffffffffffffff
push str.UpgradePath
mov byte [ebp - 4], 5
call fcn.662048b0
push eax
lea ecx, [ebp - 0x520]
call fcn.662041d0
lea ecx, [ebp - 0x3c0]
call fcn.66203190
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.66203cb0
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.66204b90
push dword [ebp - 0x3c0]
lea ecx, [ebp - 0x260]
push esi
push 1
push dword [ebp - 0x310]
call fcn.66205820
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.66205330
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.66203210
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 4
call fcn.66203210
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.66204a40
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0
call fcn.66203210
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.66203210
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