Function at 0x4167b0
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Resume thread
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x4bc198]
test eax, eax
je 0x416800
mov eax, dword [0x4bc194]
cmp byte [eax], 0
jne 0x416ac6
mov dword [esp + 8], str.pid_file_not_specified
mov dword [esp + 4], 0x478473
mov dword [esp], 3
call sym.brltty.exe_logMessage
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4bc1c0]
test eax, eax
jne 0x416af0
cmp dword [0x4bc1c4], 0
jne 0x416b05
mov eax, dword [0x4bc19c]
cmp byte [eax], 0
jne 0x416bf7
mov eax, dword [0x4bc1bc]
test eax, eax
jne 0x416cf1
mov edi, dword [0x4bc1b8]
test edi, edi
je 0x416b20
mov dword [0x4bc1b0], 1
mov eax, dword [0x4bc194]
cmp byte [eax], 0
jne 0x416cd8
mov ecx, dword [0x4bc1b0]
test ecx, ecx
je 0x416df0
mov eax, dword [0x4bc128]
mov dword [esp], eax
call sym.brltty.exe_changeScreenDriver
mov eax, dword [0x4bc118]
mov dword [esp], eax
call sym.brltty.exe_changeScreenParameters
call sym.brltty.exe_beginSpecialScreens
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4152d0
mov dword [esp], str.screen_data
call sym.brltty.exe_onProgramExit
call sym.brltty.exe_suppressTuneDeviceOpenErrors
call sym.brltty.exe_getWorkingDirectory
test eax, eax
mov ebx, eax
je 0x416f95
mov ecx, str.Working_Directory
mov edx, str.workingDirectory
call fcn.00414430
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [0x4bc190]
mov ecx, 0x478a43
mov edx, str.configurationFile
call fcn.00414430
mov eax, dword [0x4bc18c]
mov ecx, 0x478a68
mov edx, str.preferencesFile
call fcn.00414430
call sym.brltty.exe_loadPreferences
mov eax, dword [0x4bc184]
mov ecx, 0x478a89
mov edx, str.updatableDirectory
call fcn.00414430
mov eax, dword [0x4bc180]
mov ecx, 0x478ab0
mov edx, str.writableDirectory
call fcn.00414430
mov eax, dword [0x4bc17c]
mov ecx, 0x478ad5
mov edx, str.driversDirectory
call fcn.00414430
mov eax, dword [sym.brltty.exe_opt_tablesDirectory]
mov ecx, 0x478af8
mov edx, str.tablesDirectory
call fcn.00414430
mov eax, dword [sym.brltty.exe_opt_textTable]
cmp byte [eax], 0
jne 0x416c45
mov dword [esp + 4], str.en_nabcc
mov dword [esp], sym.brltty.exe_opt_textTable
call sym.brltty.exe_changeStringSetting
mov eax, dword [sym.brltty.exe_opt_textTable]
mov ecx, 0x478b22
mov edx, str.textTable
call fcn.00414430
mov dword [esp + 8], 0
mov dword [esp + 4], 0x414640
mov dword [esp], 0x478b37
call sym.brltty.exe_onProgramExit
mov eax, dword [sym.brltty.exe_opt_attributesTable]
cmp byte [eax], 0
jne 0x416ee6
mov dword [esp + 4], str.left_right
mov dword [esp], sym.brltty.exe_opt_attributesTable
call sym.brltty.exe_changeStringSetting
mov eax, dword [sym.brltty.exe_opt_attributesTable]
mov ecx, 0x478b4d
mov edx, str.attributesTable
call fcn.00414430
mov dword [esp + 8], 0
mov dword [esp + 4], 0x414660
mov dword [esp], str.attributes_table
call sym.brltty.exe_onProgramExit
mov dword [esp + 8], 0
mov dword [esp + 4], 0x414790
mov dword [esp], 0x478b7f
call sym.brltty.exe_onProgramExit
mov eax, dword [sym.brltty.exe_opt_contractionTable]
cmp byte [eax], 0
jne 0x416ed4
mov ecx, 0x478b91
mov edx, str.contractionTable
call fcn.00414430
mov eax, dword [0x4bc144]
mov dword [esp], 0x4bc138
mov dword [esp + 4], eax
call sym.brltty.exe_parseKeyboardProperties
mov dword [esp + 8], 0
mov dword [esp + 4], 0x415340
mov dword [esp], str.keyboard_table
call sym.brltty.exe_onProgramExit
mov eax, dword [sym.brltty.exe_opt_keyboardTable]
mov dword [esp], eax
call sym.brltty.exe_changeKeyboardTable
mov eax, dword [sym.brltty.exe_opt_keyboardTable]
mov ecx, 0x478bc3
mov edx, str.keyboardTable
call fcn.00414430
mov eax, dword [0x4bc1b8]
test eax, eax
je 0x416c33
mov eax, 1
call fcn.00415010
test eax, eax
jne 0x416fd0
mov eax, dword [0x4bc178]
cmp byte [eax], 0
jne 0x416d40
mov dword [esp + 4], str.braille_device_not_specified
mov dword [esp], 3
call sym.brltty.exe_logMessage
mov eax, 2
jmp 0x4167f4
mov dword [esp], eax
call sym.brltty.exe_cancelProgram
mov edx, eax
mov eax, 4
test edx, edx
je 0x4167f4
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x478934
call sym.brltty.exe_removeService
mov eax, dword [0x4bc1c4]
test eax, eax
je 0x416add
mov dword [esp + 4], str.Braille_API__BrlAPI_
mov dword [esp], 0x478934
call sym.brltty.exe_installService
mov eax, 1
jmp 0x416ae2
mov esi, dword [0x4bc1b0]
test esi, esi
jne 0x41684d
mov ebx, dword [sym.brltty.exe_isWindowsService]
test ebx, ebx
jne 0x41684d
mov eax, dword [sym.brltty.exe_programName]
xor esi, esi
mov dword [esp + 4], 2
mov dword [ebp - 0x58], str._DAEMON
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.brltty.exe_joinStrings
movzx edx, byte [eax]
lea ebx, [eax + 1]
mov ecx, eax
mov dword [ebp - 0x80], eax
test dl, dl
jne 0x416b8c
jmp 0x416f60
test esi, esi
je 0x416b9c
mov ecx, ebx
add ebx, 1
movzx edx, byte [ebx - 1]
add esi, 1
test dl, dl
je 0x416f60
cmp dl, 0x5f
je 0x416b78
movzx edi, dl
lea eax, [edi - 0x30]
cmp eax, 9
jbe 0x416b74
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x416cb4
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edi*2]
and eax, 0x103
test eax, eax
je 0x416cd0
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x416f44
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edi*2]
and eax, 2
movzx eax, ax
test eax, eax
je 0x416b78
mov dword [esp], edi
mov dword [ebp - 0x7c], ecx
call sub.msvcrt.dll_toupper
mov ecx, dword [ebp - 0x7c]
mov byte [ecx], al
jmp 0x416b78
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x478c28
mov dword [esp + 4], eax
mov dword [esp], sym.brltty.exe_messageHoldTimeout
call sym.brltty.exe_validateInteger
test eax, eax
je 0x416dc6
mov eax, dword [sym.brltty.exe_messageHoldTimeout]
lea eax, [eax + eax*4]
add eax, eax
mov dword [sym.brltty.exe_messageHoldTimeout], eax
jmp 0x416828
call sym.brltty.exe_setNoScreen
call sym.brltty.exe_enableScreenDriver
lea esi, [esi]
jmp 0x416a9a
mov edi, 0x479cb0
mov ecx, 5
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x416f12
mov eax, dword [sym.brltty.exe_opt_tablesDirectory]
mov dword [esp], eax
call sym.brltty.exe_selectTextTable
mov dword [esp + 4], 0x4786f7
mov dword [esp], sym.brltty.exe_opt_textTable
mov ebx, eax
call sym.brltty.exe_changeStringSetting
test ebx, ebx
je 0x416ca1
mov eax, dword [sym.brltty.exe_opt_tablesDirectory]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.brltty.exe_replaceTextTable
test eax, eax
jne 0x41701e
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [sym.brltty.exe_opt_textTable]
cmp byte [eax], 0
jne 0x416973
jmp 0x41695a
mov dword [esp + 4], 0x103
mov dword [esp], edi
mov dword [ebp - 0x7c], ecx
call sub.msvcrt.dll__isctype
mov ecx, dword [ebp - 0x7c]
jmp 0x416bba
mov byte [ecx], 0x5f
jmp 0x416b78
call fcn.00415620
mov edx, eax
mov eax, 3
test edx, edx
je 0x4167f4
jmp 0x41685b
mov dword [esp + 8], str.Copyright__C__1995_2018_by_The_BRLTTY_Developers.
mov dword [esp + 4], 0x478473
mov dword [esp], 6
call sym.brltty.exe_logMessage
mov dword [esp], 1
call sym.brltty.exe_identifyScreenDrivers
mov dword [esp], 1
call dword [sym.brltty.exe_api]
mov dword [esp], 1
call sym.brltty.exe_identifyBrailleDrivers
mov eax, 1
jmp 0x4167f4
mov eax, dword [0x4bc168]
mov dword [esp], eax
call sym.brltty.exe_changeBrailleDriver
mov eax, dword [0x4bc158]
mov dword [esp], eax
call sym.brltty.exe_changeBrailleParameters
mov eax, dword [0x4bc178]
mov dword [esp], eax
call sym.brltty.exe_changeBrailleDevice
mov dword [esp + 8], 0
mov dword [esp + 4], 0x414680
mov dword [esp], str.braille_data
mov dword [0x4bc16c], 0
call sym.brltty.exe_onProgramExit
mov eax, dword [0x4bc1b8]
test eax, eax
je 0x416f85
mov eax, 1
call fcn.00414ee0
test eax, eax
jne 0x417033
mov eax, dword [0x4bc1b8]
test eax, eax
je 0x416fda
test eax, eax
setne al
movzx eax, al
jmp 0x4167f4
mov eax, dword [0x4bc19c]
mov dword [esp + 8], str.invalid_message_hold_timeout
mov dword [esp + 4], 0x478465
mov dword [esp], 3
mov dword [esp + 0xc], eax
call sym.brltty.exe_logMessage
jmp 0x416828
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea esi, [ebx + 0x20]
mov dword [esp], esi
lea edi, [ebx + 0x40]
call sub.msvcrt.dll_fflush
mov dword [esp], edi
call sub.msvcrt.dll_fflush
xor ecx, ecx
mov edx, str.stdin
mov eax, ebx
mov byte [sym.brltty.exe_stderrLogLevel], 0
call fcn.004156c0
mov edx, str.stdout
mov ecx, 1
mov eax, esi
call fcn.004156c0
mov edx, dword [0x4bc1ac]
test edx, edx
je 0x417008
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4789db
call sub.kernel32.dll_CreateFileA
sub esp, 0x1c
test eax, eax
mov ebx, eax
je 0x417045
mov dword [esp + 4], eax
mov dword [esp], 0xfffffff6
call sub.kernel32.dll_SetStdHandle
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff5
call sub.kernel32.dll_SetStdHandle
mov eax, dword [0x4bc1ac]
sub esp, 8
test eax, eax
jne 0x416869
mov dword [esp + 4], ebx
mov dword [esp], 0xfffffff4
call sub.kernel32.dll_SetStdHandle
sub esp, 8
jmp 0x416869
mov dword [esp], eax
call sym.brltty.exe_changeContractionTable
mov eax, dword [sym.brltty.exe_opt_contractionTable]
jmp 0x416a1a
mov dword [esp + 4], eax
mov eax, dword [sym.brltty.exe_opt_tablesDirectory]
mov dword [esp], eax
call sym.brltty.exe_replaceAttributesTable
test eax, eax
je 0x416fef
mov eax, dword [sym.brltty.exe_opt_attributesTable]
cmp byte [eax], 0
jne 0x4169c5
jmp 0x4169ac
mov dword [esp + 4], eax
mov eax, dword [sym.brltty.exe_opt_tablesDirectory]
mov dword [esp], eax
call sym.brltty.exe_replaceTextTable
test eax, eax
jne 0x416ca1
mov dword [esp + 4], 0x4786f7
mov dword [esp], sym.brltty.exe_opt_textTable
call sym.brltty.exe_changeStringSetting
jmp 0x416ca1
mov dword [esp + 4], 2
mov dword [esp], edi
mov dword [ebp - 0x7c], ecx
call sub.msvcrt.dll__isctype
mov ecx, dword [ebp - 0x7c]
jmp 0x416be1
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
je 0x417056
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x41684d
call sym.brltty.exe_enableBrailleDriver
lea esi, [esi]
jmp 0x416dac
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], 0x478a20
mov dword [esp + 4], 0x478465
mov dword [esp], 4
mov dword [esp + 0xc], eax
call sym.brltty.exe_logMessage
jmp 0x4168cf
call fcn.00415060
jmp 0x416a9a
lea esi, [esi]
call sym.brltty.exe_notifyServiceReady
mov eax, dword [0x4bc1b8]
jmp 0x416db9
mov dword [esp + 4], 0x4786f7
mov dword [esp], sym.brltty.exe_opt_attributesTable
call sym.brltty.exe_changeStringSetting
jmp 0x416eff
mov ecx, 1
mov edx, str.stderr
mov eax, edi
call fcn.004156c0
jmp 0x416e40
mov dword [esp + 4], ebx
mov dword [esp], sym.brltty.exe_opt_textTable
call sym.brltty.exe_changeStringSetting
jmp 0x416c99
call fcn.00416300
nop
lea esi, [esi]
jmp 0x416dac
mov dword [esp], str.CreateFile_NUL_
call sym.brltty.exe_logWindowsSystemError
jmp 0x416869
call sub.kernel32.dll_GetCommandLineA
lea edi, [ebp - 0x5c]
mov ecx, 0x11
mov esi, eax
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 4], str.BACKGROUND
mov dword [ebp - 0x5c], 0x44
mov dword [esp], eax
call sub.kernel32.dll_SetEnvironmentVariableA
sub esp, 8
test eax, eax
je 0x41715a
lea eax, [ebp - 0x6c]
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], 0x204
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.kernel32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x417142
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [0x4bc194]
mov dword [esp], eax
call sym.brltty.exe_createPidFile
mov esi, eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.kernel32.dll_ResumeThread
sub esp, 4
test esi, esi
mov ebx, eax
je 0x41711e
cmp ebx, 0xffffffff
je 0x417134
mov dword [esp], 0
call sub.kernel32.dll_ExitProcess
call sub.msvcrt.dll__errno
cmp dword [eax], 0x11
jne 0x41710d
mov dword [esp], 4
call sub.kernel32.dll_ExitProcess
mov dword [esp], str.ResumeThread
call sym.brltty.exe_logWindowsSystemError
jmp 0x417128
mov dword [esp], str.CreateProcess
call sym.brltty.exe_logWindowsSystemError
mov dword [esp], 4
call sub.msvcrt.dll_exit
mov dword [esp], str.SetEnvironmentVariable
call sym.brltty.exe_logWindowsSystemError
mov dword [esp], 4
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop