Function at 0x413d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.brltty.exe_makeWindowsCommandLine
test eax, eax
mov esi, eax
je 0x413fb1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x74]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], esi
lea edi, [ebp - 0x5c]
mov dword [esp + 4], str.host_command:__s
mov dword [esp], 7
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x74], 0xfffffff6
mov dword [ebp - 0x6c], 0xfffffff5
mov dword [ebp - 0x64], 0xfffffff4
call sym.brltty.exe_logMessage
mov edx, dword [ebp - 0x9c]
mov ecx, 0x11
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x100
mov edi, edx
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esp], eax
call sub.kernel32.dll_GetStdHandle
sub esp, 4
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x413fc0
add edi, 8
lea eax, [ebp - 0x5c]
cmp edi, eax
jb 0x413e11
lea eax, [ebp - 0x8c]
xor edi, edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x413b60
mov dword [esp], eax
call sym.brltty.exe_processHostCommandStreams
test eax, eax
jne 0x413e70
mov dword [esp], esi
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x84]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call sub.kernel32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x413fa0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x413b90
mov dword [esp], eax
call sym.brltty.exe_processHostCommandStreams
test eax, eax
je 0x413f7b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
test edx, edx
jne 0x413fd6
mov dword [eax], 0xff
nop
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_WaitForSingleObject
sub esp, 8
cmp eax, 0x102
je 0x413f20
test eax, eax
jne 0x413fe2
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.kernel32.dll_GetExitCodeProcess
sub esp, 8
test eax, eax
je 0x413ff0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edi, 1
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x80]
sub esp, 4
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
sub esp, 4
jmp 0x413e59
mov dword [esp], 0x4783cd
call sym.brltty.exe_logWindowsSystemError
jmp 0x413e59
call sym.brltty.exe_logMallocError
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x478399
call sym.brltty.exe_logWindowsSystemError
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax], 0
mov di, 1
jmp 0x413f7b
mov dword [esp], str.WaitForSingleObject
call sym.brltty.exe_logWindowsSystemError
jmp 0x413f76
mov dword [esp], str.GetExitCodeProcess
call sym.brltty.exe_logWindowsSystemError
jmp 0x413f76