Function at 0x41d5e0
Capabilities:
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x170
mov ebx, dword [ebp + 8]
call dbg.ffDetectTerminal
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
je 0x41d6eb
cmp eax, 9
jb 0x41d66d
push 9
push 0x4aba57
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x41d7b8
mov eax, dword [edi + 4]
cmp eax, 0xa
jb 0x41d66d
push 0xa
push str.terminator
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x41dab8
mov eax, dword [edi + 4]
cmp eax, 0xb
jb 0x41d66d
push 0xb
push 0x4aba6c
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x41dc30
mov eax, dword [edi + 4]
cmp eax, 5
jb 0x41d6ae
push 5
push str.tabby
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x41d952
cmp dword [edi + 4], 7
jb 0x41d6ae
push 7
push 0x4aba7e
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x41dbad
push 0x4aba86
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x41d74c
push 0x4aba97
push dword [edi + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x41d74c
push ebx
push edi
call dbg.ffDetectTerminalFontPlatform
add esp, 8
jmp 0x41e9a1
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x3c], edi
je 0x41d707
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, 0x31
jae 0x41d917
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov dword [esp + 0x18], edx
add edx, 0x32
nop dword [eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x41d720
test eax, eax
je 0x41d91f
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sym._realloc
add esp, 8
mov edi, eax
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41db69
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov esi, dword [edi + 0x10]
test esi, esi
mov dword [esp + 0x3c], edi
je 0x41d7a7
mov edi, dword [edi + 0x14]
push 0x4aba86
push edi
call sym._strcmp
add esp, 8
test eax, eax
je 0x41d7a7
mov ecx, esi
mov eax, esi
nop dword [eax]
sub eax, 1
jb 0x41d9e4
cmp byte [edi + ecx - 1], 0x5c
mov ecx, eax
jne 0x41d790
jmp 0x41d9e6
xor eax, eax
xor edi, edi
test edi, edi
je 0x41dfa1
jmp 0x41e081
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], str.family_
lea eax, [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], str.size_
lea esi, [esp + 0x30]
mov dword [esp + 0x6c], esi
lea ebx, [esp + 0x60]
push ebx
push 2
push str.alacritty_alacritty.toml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
jne 0x41d8c3
push ebx
push 2
push str.alacritty.toml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
jne 0x41d8c3
push ebx
push 2
push str..alacritty.toml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
jne 0x41d8c3
mov dword [esp + 0x1c], str.family:
lea eax, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], str.size:
mov dword [esp + 0x28], esi
lea esi, [esp + 0x1c]
push esi
push 2
push str.alacritty_alacritty.yml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
jne 0x41d8c3
push esi
push 2
push str.alacritty.yml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
jne 0x41d8c3
push esi
push 2
push str..alacritty.yml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
cmp dword [esp + 0x10], 0
mov ebx, dword [ebp + 8]
jne 0x41dcd4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41d8e9
cmp eax, 0xa
jae 0x41dc28
mov ecx, eax
cmp eax, 1
ja 0x41d8f0
mov ecx, 0x20
nop
mov esi, ecx
add ecx, ecx
cmp esi, 0xa
jb 0x41d8f0
test eax, eax
je 0x41dc96
push esi
push dword [esp + 0x18]
call sym._realloc
add esp, 8
mov ecx, dword [esp + 0x10]
jmp 0x41dca4
mov edi, dword [ebx + 8]
jmp 0x41db6d
push ebx
call sym._malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41db60
lea eax, [edx + 1]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 8]
push edi
call sym._memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x41db66
mov esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], str.font:
lea edi, [esp + 0x1c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], str.fontSize:
lea eax, [esp + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push 2
push str.tabby_config.yaml
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
je 0x41dee6
cmp dword [esp + 0x20], 0
jne 0x41de96
cmp dword [esp + 0x1c], 0
je 0x41de75
mov eax, dword [esp + 0x24]
mov byte [eax], 0
jmp 0x41de7e
mov eax, esi
inc eax
lea esi, [esp + 0x60]
push eax
push edi
push esi
call sym._strncpy
add esp, 0xc
push esi
call sym._strlen
add esp, 4
lea edi, [esp + eax]
add edi, 0x60
mov ebx, 0x104
sub ebx, eax
push ebx
push str..portable
push edi
call sym._strncpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x41da3f
push ebx
push str.settings_settings.json
push edi
call sym._strncpy
add esp, 0xc
mov edi, str.Error_reading_Windows_Terminal_portable_settings_JSON_file
jmp 0x41df37
sub esp, 0x14
mov dword [esp + 0x10], esi
movapd xmm0, xmmword [0x4ab9c0]
movupd xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x41dc21
push esi
call sym._strlen
add esp, 4
mov edi, 0x104
sub edi, eax
push str._8wekyb3d8bbwe_
mov ebx, dword [esp + 0x40]
push dword [ebx + 0x14]
call sym._StrStrIA_8
test eax, eax
je 0x41de5b
push 0x4abcba
push dword [ebx + 0x14]
call sym._StrStrIA_8
test eax, eax
je 0x41df23
push edi
push str.PackagesMicrosoft.WindowsTerminalPreview_8wekyb3d8bbweLocalState_settings.json
push esi
call sym._strncat
add esp, 0xc
mov edi, str.Error_reading_Windows_Terminal_Preview_settings_JSON_file
jmp 0x41df37
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], str.use_system_font_
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], str.font_
lea eax, [esp + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push 2
push str.terminator_config
push 0x507658
call dbg.ffParsePropFileListValues
add esp, 0x10
test al, al
je 0x41dc0f
push str.True
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x41de66
lea eax, [ebx + 0xc]
cmp dword [esp + 0x10], 0
je 0x41e46d
push dword [esp + 0x14]
push eax
call dbg.ffFontInitPango
add esp, 8
jmp 0x41e480
mov byte [edi], 0
mov esi, dword [ebp + 8]
mov dword [esi + 8], edi
mov dword [esi], ebx
mov ebx, esi
movups xmm0, xmmword [0x4aba30]
movups xmmword [edi + edx + 0x20], xmm0
movups xmm0, xmmword [0x4aba20]
movups xmmword [edi + edx + 0x10], xmm0
movupd xmm0, xmmword [0x4aba10]
movupd xmmword [edi + edx], xmm0
mov byte [edi + edx + 0x30], 0x6e
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea edx, [eax + 0x31]
mov dword [ebx + 4], edx
mov byte [ecx + eax + 0x31], 0
jmp 0x41e99d
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x68], eax
mov dword [esp + 0x3c], edi
mov eax, dword [edi + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], str.font_locator
mov dword [esp + 0x24], 0
lea eax, [esp + 0x1c]
lea esi, [esp + 0x60]
push 0
push eax
push esi
call dbg.ffProcessAppendOutput
add esp, 0xc
test eax, eax
je 0x41ddb3
push str._contour_font_locator__failed
push 0x1d
push ebx
call sym._ffStrbufAppendNS
jmp 0x41de2d
push str.Couldnt_read_Terminator_config_file
push 0x24
push ebx
call sym._ffStrbufAppendNS
jmp 0x41e47d
xor edi, edi
jmp 0x41df92
xor ecx, ecx
mov eax, dword [esp + 0x14]
jmp 0x41dcac
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
movupd xmm0, xmmword [0x4abbb4]
movapd xmmword [esp + 0x60], xmm0
mov eax, dword [0x4abbc4]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
lea edi, [esp + 0x1c]
push 0
push eax
push edi
call dbg.ffProcessAppendOutput
add esp, 0xc
test eax, eax
je 0x41e4cf
mov esi, eax
cmp dword [ebx], 0
je 0x41e4f9
mov eax, dword [ebx + 8]
mov byte [eax], 0
jmp 0x41e501
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov byte [eax + ecx + 8], 0x79
mov dword [eax + ecx + 4], 0x74746972
mov dword [eax + ecx], 0x63616c61
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 9]
mov dword [esp + 0x10], edx
mov byte [ecx + eax + 9], 0
cmp dword [esp + 0x34], 0
jne 0x41dd58
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41dcf2
cmp eax, 3
jae 0x41dd20
mov ecx, 2
cmp eax, 2
je 0x41dd00
mov ecx, 0x20
nop word [eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 3
jb 0x41dd00
test eax, eax
je 0x41dd28
push esi
push dword [esp + 0x3c]
call sym._realloc
add esp, 8
mov ecx, dword [esp + 0x34]
jmp 0x41dd36
xor ecx, ecx
mov eax, dword [esp + 0x38]
jmp 0x41dd3e
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], esi
mov word [eax + ecx], 0x3131
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea edx, [eax + 2]
mov dword [esp + 0x34], edx
mov byte [ecx + eax + 2], 0
lea eax, [ebx + 0xc]
push dword [esp + 0x38]
push dword [esp + 0x18]
push eax
call dbg.ffFontInitValues
add esp, 0xc
cmp dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
je 0x41dd8f
mov dword [esp + 0x30], 0
push dword [esp + 0x38]
call sym._free
add esp, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e9a1
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
jmp 0x41e4c2
push 0xa
push esi
call dbg.ffStrbufTrimRight
add esp, 8
push 0x20
push esi
call dbg.ffStrbufTrimRight
add esp, 8
mov ebx, dword [esp + 0x68]
push str.Font_description______:__family
push ebx
call sym._strstr
add esp, 8
mov edi, eax
sub edi, ebx
test eax, eax
mov esi, dword [esp + 0x64]
cmove edi, esi
cmp edi, esi
jae 0x41de30
lea eax, [ebx + edi]
add eax, 0x20
add edi, 0x20
push str._weight
push eax
call sym._strstr
add esp, 8
mov ecx, eax
sub ecx, ebx
test eax, eax
cmove ecx, esi
push ecx
lea eax, [esp + 0x64]
push eax
call sym._ffStrbufSubstrBefore
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0xc
add edi, dword [esp + 0x68]
push 0
push edi
push eax
call dbg.ffFontInitValues
add esp, 0xc
cmp dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
je 0x41de53
mov dword [esp + 0x60], 0
push dword [esp + 0x68]
call sym._free
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x41e99d
push edi
push str.MicrosoftWindows_Terminal_settings.json
jmp 0x41df29
lea eax, [ebx + 0xc]
push 0
push str.System
jmp 0x41e477
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
push str.monospace
push 9
push edi
call sym._ffStrbufAppendNS
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x41ded2
cmp dword [esp + 0xc], 0
je 0x41dead
mov eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x41deb6
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
push 0x4abbf6
push 2
lea eax, [esp + 0x14]
push eax
call sym._ffStrbufAppendNS
add esp, 0xc
lea eax, [ebx + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x28]
push eax
call dbg.ffFontInitValues
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41df09
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edi, esi
jne 0x41e4b6
jmp 0x41e9a1
push edi
push str.PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalState_settings.json
push esi
call sym._strncat
add esp, 0xc
mov edi, str.Error_reading_Windows_Terminal_settings_JSON_file
sub esp, 0x1c
movapd xmm0, xmmword [0x4ab9d0]
movupd xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp eax, 0xffffffff
je 0x41df7a
lea eax, [esp + 0xc]
push eax
push esi
call dbg.ffAppendFDBuffer
add esp, 8
mov ebx, eax
jmp 0x41df7c
xor ebx, ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x41df8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test bl, bl
cmovne edi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x41e081
test eax, eax
jne 0x41e081
mov dword [esp + 0x60], 0x4abe06
mov dword [esp + 0x64], 0x4abe0e
mov dword [esp + 0x68], str.if_exist__LOCALAPPDATA_PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalState_settings.json___type__LOCALAPPDATA_PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalState_settings.json___else_if_exist__LOCALAPPDATA_PackagesMicrosoft.WindowsTerminalPreview_8wekyb3d8bbweLocalState_settings.json___type__LOCALAPPDATA_PackagesMicrosoft.WindowsTerminalPreview_8wekyb3d8bbweLocalState_settings.json___else_if_exist___LOCALAPPDATA_MicrosoftWindows_Terminal_settings.json____type__LOCALAPPDATA_MicrosoftWindows_Terminal_settings.json___else___call__
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x60]
lea ecx, [esp + 0xc]
push 0
push eax
push ecx
call dbg.ffProcessAppendOutput
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x41e089
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e3a6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0xa
jne 0x41e17f
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e160
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0xa
je 0x41e010
cmp dword [esp + 0xc], 0
jne 0x41e16b
lea ecx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov ecx, 0x20
mov esi, ecx
add ecx, ecx
cmp eax, esi
ja 0x41e04b
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x18]
push esi
push edi
push eax
mov edi, eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e16b
test edi, edi
je 0x41e20c
push edi
call sym._strlen
add esp, 4
test eax, eax
je 0x41e97a
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x41e0af
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, esi
jae 0x41e0f7
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov dword [esp + 0x40], edx
add edx, esi
inc edx
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x41e0d0
test eax, eax
mov dword [esp + 0x18], esi
je 0x41e0fc
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sym._realloc
add esp, 8
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41e137
mov eax, dword [ebx + 8]
jmp 0x41e13f
push ebx
call sym._malloc
add esp, 4
mov edx, dword [esp + 0x40]
test edx, edx
je 0x41e12e
lea ecx, [edx + 1]
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 8]
push eax
mov dword [esp + 0x38], eax
call sym._memcpy
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
add esp, 0xc
jmp 0x41e134
mov byte [eax], 0
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi], ebx
mov ebx, esi
mov esi, dword [esp + 0x18]
add edx, eax
push esi
push edi
push edx
call sym._memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
mov byte [ecx + eax], 0
jmp 0x41e97a
cmp dword [esp + 0xc], 0
je 0x41e38a
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x41e3a6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0x20
jne 0x41e214
inc eax
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e1f5
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0x20
je 0x41e18f
cmp dword [esp + 0xc], 0
jne 0x41e200
lea ecx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov ecx, 0x20
mov esi, ecx
add ecx, ecx
cmp eax, esi
ja 0x41e1c2
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x18]
push esi
push edi
push eax
mov edi, eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e200
cmp dword [esp + 0xc], 0
je 0x41e38a
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41e3a6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0xa
jne 0x41e2b5
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e296
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0xa
je 0x41e230
cmp dword [esp + 0xc], 0
jne 0x41e2a1
lea ecx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov ecx, 0x20
mov esi, ecx
add ecx, ecx
cmp eax, esi
ja 0x41e263
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x18]
push esi
push edi
push eax
mov edi, eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e2a1
cmp dword [esp + 0xc], 0
je 0x41e38a
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x41e3a6
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov ecx, dword [0x5052b0]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], 0xbff00000
mov dword [esp + 0x48], 0
push 0
push 0
push 0x1c
push eax
push dword [esp + 0x24]
call dbg.yyjson_read_opts
add esp, 0x14
test eax, eax
je 0x41e380
mov ebx, dword [eax]
movsd xmm1, qword [0x4ab9e0]
test ebx, ebx
je 0x41e371
mov ecx, dword [ebx]
mov edx, ecx
not edx
test dl, 7
jne 0x41e371
mov edx, dword [ebx + 4]
shld edx, ecx, 0x18
je 0x41e371
mov dword [esp + 0x18], str.yyjson_obj_get_root___profiles___failed
mov dword [esp + 0x2c], eax
add ebx, 0x10
mov eax, 0x73656c69
jmp 0x41e33e
add ebx, esi
add ebx, 0x10
dec edx
je 0x41e462
cmp dword [ebx + 1], 8
jne 0x41e35d
mov esi, dword [ebx + 8]
mov edi, dword [esi]
mov ecx, 0x666f7270
xor edi, ecx
mov esi, dword [esi + 4]
xor esi, eax
or esi, edi
je 0x41e52b
mov ecx, dword [ebx + 0x10]
not ecx
mov esi, 0x10
test cl, 6
jne 0x41e332
mov esi, dword [ebx + 0x18]
jmp 0x41e332
mov dword [esp + 0x18], str.yyjson_obj_get_root___profiles___failed
xor ebx, ebx
jmp 0x41e826
mov esi, str.Failed_to_parse_WT_JSON_config_file
jmp 0x41e892
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x41e3ba
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, 0x20
jae 0x41e3f5
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov dword [esp + 0x18], edx
add edx, 0x21
nop dword [eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x41e3d0
test eax, eax
je 0x41e3fa
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sym._realloc
add esp, 8
mov edi, eax
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41e42f
mov edi, dword [ebx + 8]
jmp 0x41e433
push ebx
call sym._malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41e426
lea eax, [edx + 1]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 8]
push edi
call sym._memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x41e42c
mov byte [edi], 0
mov esi, dword [ebp + 8]
mov dword [esi + 8], edi
mov dword [esi], ebx
mov ebx, esi
movups xmm0, xmmword [0x4ac053]
movups xmmword [edi + edx + 0x10], xmm0
movupd xmm0, xmmword [str.Cannot_find_file__settings.json_]
movupd xmmword [edi + edx], xmm0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea edx, [eax + 0x20]
mov dword [ebx + 4], edx
mov byte [ecx + eax + 0x20], 0
jmp 0x41e97a
xor ebx, ebx
mov eax, dword [esp + 0x2c]
jmp 0x41e826
push 0x4abb97
push str.mono
push eax
call dbg.ffFontInitValues
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e4a3
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x41e9a1
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
call sym._free
add esp, 4
jmp 0x41e9a1
push 0xa
push edi
call dbg.ffStrbufTrimRight
add esp, 8
push 0x20
push edi
call dbg.ffStrbufTrimRight
add esp, 8
cmp dword [ebx], 0
je 0x41e5f2
mov eax, dword [ebx + 8]
mov byte [eax], 0
jmp 0x41e5fa
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
push esi
call sym._strlen
add esp, 4
push esi
push eax
push ebx
call sym._ffStrbufAppendNS
add esp, 0xc
cmp dword [ebx + 4], 0
jne 0x41e64f
jmp 0x41e601
push 0x4ac0bc
call sym._getenv
add esp, 4
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
test esi, esi
je 0x41e56f
push esi
call sym._strlen
add esp, 4
lea ecx, [esp + 0x1c]
push esi
push eax
push ecx
call sym._ffStrbufAppendNS
add esp, 0xc
lea esi, [esp + 0x1c]
push 0x27
push esi
call dbg.ffStrbufTrimRight
add esp, 8
push 0x27
push esi
call dbg.ffStrbufTrimLeft
add esp, 8
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
cmp dword [esp + 0x20], 0
je 0x41e721
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x41e721
mov eax, esi
shld eax, ecx, 0x18
je 0x41e721
mov dword [esp + 0x40], ecx
lea edi, [ebx + 0x20]
jmp 0x41e5c9
add edi, ecx
add edi, 0x10
dec eax
je 0x41e71d
cmp dword [edi + 1], 4
jne 0x41e5de
mov ecx, dword [edi + 8]
cmp dword [ecx], 0x7473696c
je 0x41e673
mov edx, dword [edi + 0x10]
not edx
mov ecx, 0x10
test dl, 6
jne 0x41e5bd
mov ecx, dword [edi + 0x18]
jmp 0x41e5bd
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
push 0x22
push edi
call dbg.ffStrbufSubstrAfterFirstC
add esp, 8
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push esi
push 0x22
push ebx
call sym._memchr
add esp, 0xc
mov ecx, eax
sub ecx, ebx
mov ebx, dword [ebp + 8]
test eax, eax
cmove ecx, esi
push ecx
push edi
call sym._ffStrbufSubstrBefore
add esp, 8
cmp dword [esp + 0x20], 0
je 0x41e64f
lea eax, [ebx + 0xc]
push 0
push dword [esp + 0x28]
push eax
call dbg.ffFontInitValues
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x41e99d
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
jmp 0x41e995
mov eax, dword [edi + 0x10]
mov ecx, eax
and ecx, 7
cmp ecx, 6
jne 0x41e71d
mov ecx, dword [edi + 0x14]
mov edx, ecx
shld edx, eax, 0x18
mov dword [esp + 0x5c], edx
je 0x41e71d
mov dword [esp + 0x54], esi
and eax, 0xffffff00
movzx ecx, cl
add edi, 0x20
xor edx, edx
or ecx, eax
mov dword [esp + 0x18], 0
cmove edi, edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov esi, dword [edi + 1]
lea eax, [edi + 0x10]
jmp 0x41e6ca
add eax, edx
add eax, 0x10
dec esi
cmp dword [eax + 1], 4
jne 0x41e6dc
mov edx, dword [eax + 8]
cmp dword [edx], 0x64697567
je 0x41e6f0
mov ecx, dword [eax + 0x10]
not ecx
mov edx, 0x10
test cl, 6
jne 0x41e6c5
mov edx, dword [eax + 0x18]
jmp 0x41e6c5
push dword [eax + 0x18]
push dword [esp + 0x5c]
call sym._strcmp
add esp, 8
test eax, eax
je 0x41e9d1
mov eax, dword [esp + 0x18]
inc eax
add edi, dword [edi + 8]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x5c]
jne 0x41e6bd
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov eax, ecx
not eax
test al, 7
jne 0x41e789
shld esi, ecx, 0x18
je 0x41e789
add ebx, 0x20
mov edi, 0x61666564
mov ecx, 0x73746c75
jmp 0x41e746
add ebx, edx
add ebx, 0x10
dec esi
je 0x41e789
cmp dword [ebx + 1], 8
jne 0x41e760
mov edx, dword [ebx + 8]
mov eax, esi
mov esi, dword [edx]
xor esi, edi
mov edx, dword [edx + 4]
xor edx, ecx
or edx, esi
mov esi, eax
je 0x41e773
mov eax, dword [ebx + 0x10]
not eax
mov edx, 0x10
test al, 6
jne 0x41e73e
mov edx, dword [ebx + 0x18]
jmp 0x41e73e
add ebx, 0x10
lea eax, [esp + 0x48]
lea edx, [esp + 0x30]
mov ecx, ebx
push eax
call dbg.detectWTProfile
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x41e7c5
cmp dword [esp + 0x30], 0
je 0x41e7a0
mov eax, dword [esp + 0x38]
mov byte [eax], 0
jmp 0x41e7a9
mov eax, dword [0x5052b0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0
lea eax, [esp + 0x30]
push str.Cascadia_Mono
push 0xd
push eax
call sym._ffStrbufAppendNS
add esp, 0xc
movsd xmm1, qword [esp + 0x48]
xorpd xmm0, xmm0
ucomisd xmm0, xmm1
mov eax, dword [esp + 0x2c]
jbe 0x41e7f1
mov dword [esp + 0x4c], 0x40280000
mov dword [esp + 0x48], 0
movsd xmm1, qword [0x4ab9e8]
cmp dword [esp + 0x1c], 0
je 0x41e81c
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
movsd qword [esp + 0x44], xmm1
call sym._free
movsd xmm1, qword [esp + 0x44]
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x18], 0
mov bl, 1
movsd qword [esp + 0x40], xmm1
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41e84c
push ecx
push edi
mov dword [esp + 0x34], ebx
mov ebx, eax
call esi
mov eax, ebx
mov ebx, dword [esp + 0x34]
add esp, 8
push eax
push edi
call esi
add esp, 8
test bl, bl
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
je 0x41e892
sub esp, 0x14
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0xc], xmm0
lea esi, [esp + 0x30]
mov dword [esp], esi
call sym._snprintf
add esp, 0x14
lea eax, [ebx + 0xc]
push esi
push dword [esp + 0x3c]
push eax
call dbg.ffFontInitValues
add esp, 0xc
jmp 0x41e967
push esi
call sym._strlen
add esp, 4
test esi, esi
je 0x41e967
test eax, eax
je 0x41e967
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
test edi, edi
je 0x41e8be
mov ecx, edx
not ecx
add ecx, edi
cmp ecx, eax
jae 0x41e905
mov dword [esp + 0x18], esi
cmp edi, 2
mov ecx, 0x20
cmovae ecx, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edx
add edx, eax
inc edx
nop dword [eax + eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x41e8e0
test edi, edi
je 0x41e90a
push esi
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
call sym._realloc
add esp, 8
mov edi, eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
jmp 0x41e93f
mov edi, dword [ebx + 8]
jmp 0x41e949
push esi
call sym._malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x41e936
lea eax, [edx + 1]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
push edi
call sym._memcpy
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x41e93c
mov byte [edi], 0
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], edi
mov eax, dword [esp + 0x40]
mov dword [ebx], esi
mov esi, dword [esp + 0x18]
add edx, edi
push eax
push esi
push edx
mov esi, eax
call sym._memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
mov byte [ecx + eax], 0
cmp dword [esp + 0x30], 0
je 0x41e97a
push dword [esp + 0x38]
call sym._free
add esp, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e99d
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x41e9c4
xor eax, eax
cmp dword [ebx + 0x10], 0
jne 0x41e9c4
push dword [edi + 8]
push str.Unknown_terminal:__s
push ebx
call dbg.ffStrbufAppendF
add esp, 0xc
mov eax, dword [ebx + 4]
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x48]
lea edx, [esp + 0x30]
mov ecx, edi
push eax
call dbg.detectWTProfile
add esp, 4
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
jmp 0x41e721