Function at 0x4082f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4bc08c]
test eax, eax
je 0x408300
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], str.XDG_CONFIG_DIRS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x408430
cmp byte [eax], 0
je 0x408430
lea edx, [esp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call sym.brltty.exe_splitString
test eax, eax
mov edi, eax
je 0x408414
mov eax, dword [esp + 0x10]
lea ebx, [eax + 2]
lea eax, [eax*4 + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4084fe
mov dword [esp], str.XDG_CONFIG_HOME
mov dword [esp + 0x14], 0
call sub.msvcrt.dll_getenv
test eax, eax
je 0x408387
cmp byte [eax], 0
jne 0x408440
call sym.brltty.exe_getHomeDirectory
test eax, eax
nop
je 0x4083a3
cmp byte [eax], 0
jne 0x408493
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x408470
mov ecx, dword [edi]
test ecx, ecx
je 0x408528
mov ebp, edi
jmp 0x4083d1
sub ebx, 1
add ebp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x408528
cmp byte [ecx], 0
je 0x4083c0
mov dword [esp], 1
lea edx, [esp + 0x14]
mov eax, esi
call fcn.00407a90
test eax, eax
jne 0x4083c3
mov edx, dword [ebp]
test edx, edx
je 0x408528
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov dword [esi + eax*4], 0
jne 0x408460
mov dword [0x4bc08c], esi
mov dword [esp], edi
call sym.brltty.exe_deallocateStrings
mov eax, dword [0x4bc08c]
test eax, eax
je 0x40850a
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str._etc_xdg
jmp 0x408324
mov ecx, eax
mov eax, esi
mov dword [esp], 1
lea edx, [esp + 0x14]
call fcn.00407a90
test eax, eax
je 0x4083f7
jmp 0x4083a3
mov dword [esp], esi
call sym.brltty.exe_deallocateStrings
jmp 0x40840c
mov dword [esp], 0x476ce8
call sub.msvcrt.dll__strdup
test eax, eax
je 0x40857b
mov dword [esp + 0x14], 1
mov dword [esi], eax
jmp 0x4083af
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], 2
mov dword [esp], eax
mov dword [esp + 0x1c], str..config
call sym.brltty.exe_joinPath
mov edx, dword [esp + 0xc]
mov dword [esp], edx
mov ebp, eax
call sub.msvcrt.dll_free
test ebp, ebp
je 0x4083a3
mov ecx, ebp
mov eax, esi
lea edx, [esp + 0x14]
mov dword [esp], 1
call fcn.00407a90
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4083f7
jmp 0x4083a3
nop
call sym.brltty.exe_logMallocError
jmp 0x40840c
mov dword [esp + 4], str.no_override_directories
mov dword [esp], 4
call sym.brltty.exe_logMessage
mov eax, dword [0x4bc08c]
jmp 0x408421
call sym.brltty.exe_getHomeDirectory
test eax, eax
mov ebp, eax
je 0x408538
cmp byte [eax], 0
jne 0x40858a
call sym.brltty.exe_getWorkingDirectory
test eax, eax
nop
je 0x408566
mov dword [esp + 0xc], eax
mov ecx, eax
mov eax, esi
mov dword [esp], 0
lea edx, [esp + 0x14]
call fcn.00407a90
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
test ebp, ebp
je 0x4083f7
mov dword [esp], ebp
call sub.msvcrt.dll_free
jmp 0x4083f7
nop
lea esi, [esi]
call sym.brltty.exe_logMallocError
jmp 0x4083f7
mov ecx, eax
mov eax, esi
mov dword [esp], 0
lea edx, [esp + 0x14]
call fcn.00407a90
jmp 0x40856e