Function at 0x140005620
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x100], rax
lea rcx, str.FWUpgradeProgressUI_starting_n
call fcn.1400013e0
mov rcx, qword [0x14003e308]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x140005678
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ResetEvent_failed__gle___d_n
call fcn.1400013e0
jmp 0x140005855
xor eax, eax
mov qword [rsp + 0x220], rbx
mov qword [rsp + 0x228], rdi
lea rcx, [rbp - 0x68]
xor edi, edi
mov qword [rbp - 0x80], rax
xor edx, edx
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], edi
lea r8d, [rdi + 0x60]
call fcn.14000bc50
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
mov ebx, eax
lea rdx, [rsp + 0x68]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rbp - 0x70]
call fcn.14000bc50
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r9d, [rdi + 1]
xor eax, eax
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov qword [rbp - 0x80], rax
mov edx, 0x2000000
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140005740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DuplicateTokenEx_failed__gle___d_n
call fcn.1400013e0
jmp 0x140005845
mov rcx, qword [rsp + 0x60]
mov edx, 0xc
mov r8, rbx
lea r9d, [rdx - 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x70], rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x14000578f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateEnvironmentBlock_failed__gle___d_n
call fcn.1400013e0
jmp 0x140005845
xor edx, edx
lea rcx, [rbp + 1]
mov r8d, 0xfe
call fcn.14000bc50
lea rdx, [rbp + 1]
mov byte [rbp], 0x22
call fcn.140005220
lea r8, str.BroadcomCV_binFirmwareUpgradeProgress.exe__run
mov edx, 0xff
lea rcx, [rbp]
call fcn.140011be0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea r8, [rbp]
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140005823
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcessAsUser_failed__gle___d_n
call fcn.1400013e0
jmp 0x140005845
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.FWUpgradeProgressUI_started_n
call fcn.1400013e0
mov rbx, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140008770
add rsp, 0x210
pop rbp
ret