Function at 0x41d630
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 fcn.00481920
mov edi, eax
mov eax, dword [eax + 4]
test eax, eax
je 0x41d73b
cmp eax, 9
jb 0x41d6bd
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 0x41d808
mov eax, dword [edi + 4]
cmp eax, 0xa
jb 0x41d6bd
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 0x41db08
mov eax, dword [edi + 4]
cmp eax, 0xb
jb 0x41d6bd
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 0x41dc80
mov eax, dword [edi + 4]
cmp eax, 5
jb 0x41d6fe
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 0x41d9a2
cmp dword [edi + 4], 7
jb 0x41d6fe
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 0x41dbfd
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 0x41d79c
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 0x41d79c
push ebx
push edi
call fcn.00480280
add esp, 8
jmp 0x41e9f1
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x3c], edi
je 0x41d757
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, 0x31
jae 0x41d967
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 0x41d770
test eax, eax
je 0x41d96f
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41dbb9
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 0x41d7f7
mov edi, dword [edi + 0x14]
push 0x4aba86
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x41d7f7
mov ecx, esi
mov eax, esi
nop dword [eax]
sub eax, 1
jb 0x41da34
cmp byte [edi + ecx - 1], 0x5c
mov ecx, eax
jne 0x41d7e0
jmp 0x41da36
xor eax, eax
xor edi, edi
test edi, edi
je 0x41dff1
jmp 0x41e0d1
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 fcn.0041a220
add esp, 0x10
test al, al
jne 0x41d913
push ebx
push 2
push str.alacritty.toml
push 0x507658
call fcn.0041a220
add esp, 0x10
test al, al
jne 0x41d913
push ebx
push 2
push str..alacritty.toml
push 0x507658
call fcn.0041a220
add esp, 0x10
test al, al
jne 0x41d913
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 fcn.0041a220
add esp, 0x10
test al, al
jne 0x41d913
push esi
push 2
push str.alacritty.yml
push 0x507658
call fcn.0041a220
add esp, 0x10
test al, al
jne 0x41d913
push esi
push 2
push str..alacritty.yml
push 0x507658
call fcn.0041a220
add esp, 0x10
cmp dword [esp + 0x10], 0
mov ebx, dword [ebp + 8]
jne 0x41dd24
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41d939
cmp eax, 0xa
jae 0x41dc78
mov ecx, eax
cmp eax, 1
ja 0x41d940
mov ecx, 0x20
nop
mov esi, ecx
add ecx, ecx
cmp esi, 0xa
jb 0x41d940
test eax, eax
je 0x41dce6
push esi
push dword [esp + 0x18]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, dword [esp + 0x10]
jmp 0x41dcf4
mov edi, dword [ebx + 8]
jmp 0x41dbbd
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41dbb0
lea eax, [edx + 1]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 8]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x41dbb6
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 fcn.0041a220
add esp, 0x10
test al, al
je 0x41df36
cmp dword [esp + 0x20], 0
jne 0x41dee6
cmp dword [esp + 0x1c], 0
je 0x41dec5
mov eax, dword [esp + 0x24]
mov byte [eax], 0
jmp 0x41dece
mov eax, esi
inc eax
lea esi, [esp + 0x60]
push eax
push edi
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_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 sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x41da8f
push ebx
push str.settings_settings.json
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
mov edi, str.Error_reading_Windows_Terminal_portable_settings_JSON_file
jmp 0x41df87
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 0x41dc71
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, 0x104
sub edi, eax
push str._8wekyb3d8bbwe_
mov ebx, dword [esp + 0x40]
push dword [ebx + 0x14]
call sub.SHELL32.dll_StrStrIA
test eax, eax
je 0x41deab
push 0x4abcba
push dword [ebx + 0x14]
call sub.SHELL32.dll_StrStrIA
test eax, eax
je 0x41df73
push edi
push str.PackagesMicrosoft.WindowsTerminalPreview_8wekyb3d8bbweLocalState_settings.json
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
mov edi, str.Error_reading_Windows_Terminal_Preview_settings_JSON_file
jmp 0x41df87
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 fcn.0041a220
add esp, 0x10
test al, al
je 0x41dc5f
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 0x41deb6
lea eax, [ebx + 0xc]
cmp dword [esp + 0x10], 0
je 0x41e4bd
push dword [esp + 0x14]
push eax
call fcn.00414850
add esp, 8
jmp 0x41e4d0
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 0x41e9ed
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 fcn.00474b20
add esp, 0xc
test eax, eax
je 0x41de03
push str._contour_font_locator__failed
push 0x1d
push ebx
call fcn.00472620
jmp 0x41de7d
push str.Couldnt_read_Terminator_config_file
push 0x24
push ebx
call fcn.00472620
jmp 0x41e4cd
xor edi, edi
jmp 0x41dfe2
xor ecx, ecx
mov eax, dword [esp + 0x14]
jmp 0x41dcfc
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 fcn.00474b20
add esp, 0xc
test eax, eax
je 0x41e51f
mov esi, eax
cmp dword [ebx], 0
je 0x41e549
mov eax, dword [ebx + 8]
mov byte [eax], 0
jmp 0x41e551
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x41dda8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41dd42
cmp eax, 3
jae 0x41dd70
mov ecx, 2
cmp eax, 2
je 0x41dd50
mov ecx, 0x20
nop word [eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 3
jb 0x41dd50
test eax, eax
je 0x41dd78
push esi
push dword [esp + 0x3c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, dword [esp + 0x34]
jmp 0x41dd86
xor ecx, ecx
mov eax, dword [esp + 0x38]
jmp 0x41dd8e
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 fcn.00414f20
add esp, 0xc
cmp dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
je 0x41dddf
mov dword [esp + 0x30], 0
push dword [esp + 0x38]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e9f1
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
jmp 0x41e512
push 0xa
push esi
call fcn.00472a70
add esp, 8
push 0x20
push esi
call fcn.00472a70
add esp, 8
mov ebx, dword [esp + 0x68]
push str.Font_description______:__family
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_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 0x41de80
lea eax, [ebx + edi]
add eax, 0x20
add edi, 0x20
push str._weight
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_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 fcn.00472d30
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0xc
add edi, dword [esp + 0x68]
push 0
push edi
push eax
call fcn.00414f20
add esp, 0xc
cmp dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
je 0x41dea3
mov dword [esp + 0x60], 0
push dword [esp + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x41e9ed
push edi
push str.MicrosoftWindows_Terminal_settings.json
jmp 0x41df79
lea eax, [ebx + 0xc]
push 0
push str.System
jmp 0x41e4c7
mov eax, dword [0x5052b0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
push str.monospace
push 9
push edi
call fcn.00472620
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x41df22
cmp dword [esp + 0xc], 0
je 0x41defd
mov eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x41df06
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 fcn.00472620
add esp, 0xc
lea eax, [ebx + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x28]
push eax
call fcn.00414f20
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41df59
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edi, esi
jne 0x41e506
jmp 0x41e9f1
push edi
push str.PackagesMicrosoft.WindowsTerminal_8wekyb3d8bbweLocalState_settings.json
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_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 0x41dfca
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00473ec0
add esp, 8
mov ebx, eax
jmp 0x41dfcc
xor ebx, ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x41dfdb
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 0x41e0d1
test eax, eax
jne 0x41e0d1
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 fcn.00474b20
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x41e0d9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e3f6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0xa
jne 0x41e1cf
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e1b0
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0xa
je 0x41e060
cmp dword [esp + 0xc], 0
jne 0x41e1bb
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 0x41e09b
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e1bb
test edi, edi
je 0x41e25c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x41e9ca
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
test eax, eax
je 0x41e0ff
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, esi
jae 0x41e147
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 0x41e120
test eax, eax
mov dword [esp + 0x18], esi
je 0x41e14c
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41e187
mov eax, dword [ebx + 8]
jmp 0x41e18f
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edx, dword [esp + 0x40]
test edx, edx
je 0x41e17e
lea ecx, [edx + 1]
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 8]
push eax
mov dword [esp + 0x38], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
add esp, 0xc
jmp 0x41e184
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 sub.api_ms_win_crt_private_l1_1_0.dll_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 0x41e9ca
cmp dword [esp + 0xc], 0
je 0x41e3da
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x41e3f6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0x20
jne 0x41e264
inc eax
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e245
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0x20
je 0x41e1df
cmp dword [esp + 0xc], 0
jne 0x41e250
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 0x41e212
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e250
cmp dword [esp + 0xc], 0
je 0x41e3da
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41e3f6
mov edi, dword [esp + 0x14]
cmp byte [eax + edi - 1], 0xa
jne 0x41e305
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp ebx, 2
je 0x41e2e6
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0xa
je 0x41e280
cmp dword [esp + 0xc], 0
jne 0x41e2f1
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 0x41e2b3
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], esi
jmp 0x41e2f1
cmp dword [esp + 0xc], 0
je 0x41e3da
mov byte [edi + ebx - 2], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x41e3f6
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 fcn.004884c0
add esp, 0x14
test eax, eax
je 0x41e3d0
mov ebx, dword [eax]
movsd xmm1, qword [0x4ab9e0]
test ebx, ebx
je 0x41e3c1
mov ecx, dword [ebx]
mov edx, ecx
not edx
test dl, 7
jne 0x41e3c1
mov edx, dword [ebx + 4]
shld edx, ecx, 0x18
je 0x41e3c1
mov dword [esp + 0x18], str.yyjson_obj_get_root___profiles___failed
mov dword [esp + 0x2c], eax
add ebx, 0x10
mov eax, 0x73656c69
jmp 0x41e38e
add ebx, esi
add ebx, 0x10
dec edx
je 0x41e4b2
cmp dword [ebx + 1], 8
jne 0x41e3ad
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 0x41e57b
mov ecx, dword [ebx + 0x10]
not ecx
mov esi, 0x10
test cl, 6
jne 0x41e382
mov esi, dword [ebx + 0x18]
jmp 0x41e382
mov dword [esp + 0x18], str.yyjson_obj_get_root___profiles___failed
xor ebx, ebx
jmp 0x41e876
mov esi, str.Failed_to_parse_WT_JSON_config_file
jmp 0x41e8e2
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 0x41e40a
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, 0x20
jae 0x41e445
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 0x41e420
test eax, eax
je 0x41e44a
push ebx
mov esi, dword [ebp + 8]
push dword [esi + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
jmp 0x41e47f
mov edi, dword [ebx + 8]
jmp 0x41e483
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41e476
lea eax, [edx + 1]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 8]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x41e47c
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 0x41e9ca
xor ebx, ebx
mov eax, dword [esp + 0x2c]
jmp 0x41e876
push 0x4abb97
push str.mono
push eax
call fcn.00414f20
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e4f3
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x41e9f1
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x41e9f1
push 0xa
push edi
call fcn.00472a70
add esp, 8
push 0x20
push edi
call fcn.00472a70
add esp, 8
cmp dword [ebx], 0
je 0x41e642
mov eax, dword [ebx + 8]
mov byte [eax], 0
jmp 0x41e64a
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push esi
push eax
push ebx
call fcn.00472620
add esp, 0xc
cmp dword [ebx + 4], 0
jne 0x41e69f
jmp 0x41e651
push 0x4ac0bc
call sub.api_ms_win_crt_environment_l1_1_0.dll_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 0x41e5bf
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + 0x1c]
push esi
push eax
push ecx
call fcn.00472620
add esp, 0xc
lea esi, [esp + 0x1c]
push 0x27
push esi
call fcn.00472a70
add esp, 8
push 0x27
push esi
call fcn.00472a00
add esp, 8
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
cmp dword [esp + 0x20], 0
je 0x41e771
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x41e771
mov eax, esi
shld eax, ecx, 0x18
je 0x41e771
mov dword [esp + 0x40], ecx
lea edi, [ebx + 0x20]
jmp 0x41e619
add edi, ecx
add edi, 0x10
dec eax
je 0x41e76d
cmp dword [edi + 1], 4
jne 0x41e62e
mov ecx, dword [edi + 8]
cmp dword [ecx], 0x7473696c
je 0x41e6c3
mov edx, dword [edi + 0x10]
not edx
mov ecx, 0x10
test dl, 6
jne 0x41e60d
mov ecx, dword [edi + 0x18]
jmp 0x41e60d
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
push 0x22
push edi
call fcn.00473010
add esp, 8
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push esi
push 0x22
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_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 fcn.00472d30
add esp, 8
cmp dword [esp + 0x20], 0
je 0x41e69f
lea eax, [ebx + 0xc]
push 0
push dword [esp + 0x28]
push eax
call fcn.00414f20
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x41e9ed
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
jmp 0x41e9e5
mov eax, dword [edi + 0x10]
mov ecx, eax
and ecx, 7
cmp ecx, 6
jne 0x41e76d
mov ecx, dword [edi + 0x14]
mov edx, ecx
shld edx, eax, 0x18
mov dword [esp + 0x5c], edx
je 0x41e76d
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 0x41e71a
add eax, edx
add eax, 0x10
dec esi
cmp dword [eax + 1], 4
jne 0x41e72c
mov edx, dword [eax + 8]
cmp dword [edx], 0x64697567
je 0x41e740
mov ecx, dword [eax + 0x10]
not ecx
mov edx, 0x10
test cl, 6
jne 0x41e715
mov edx, dword [eax + 0x18]
jmp 0x41e715
push dword [eax + 0x18]
push dword [esp + 0x5c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x41ea21
mov eax, dword [esp + 0x18]
inc eax
add edi, dword [edi + 8]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x5c]
jne 0x41e70d
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov eax, ecx
not eax
test al, 7
jne 0x41e7d9
shld esi, ecx, 0x18
je 0x41e7d9
add ebx, 0x20
mov edi, 0x61666564
mov ecx, 0x73746c75
jmp 0x41e796
add ebx, edx
add ebx, 0x10
dec esi
je 0x41e7d9
cmp dword [ebx + 1], 8
jne 0x41e7b0
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 0x41e7c3
mov eax, dword [ebx + 0x10]
not eax
mov edx, 0x10
test al, 6
jne 0x41e78e
mov edx, dword [ebx + 0x18]
jmp 0x41e78e
add ebx, 0x10
lea eax, [esp + 0x48]
lea edx, [esp + 0x30]
mov ecx, ebx
push eax
call fcn.0041ea60
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x41e815
cmp dword [esp + 0x30], 0
je 0x41e7f0
mov eax, dword [esp + 0x38]
mov byte [eax], 0
jmp 0x41e7f9
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 fcn.00472620
add esp, 0xc
movsd xmm1, qword [esp + 0x48]
xorpd xmm0, xmm0
ucomisd xmm0, xmm1
mov eax, dword [esp + 0x2c]
jbe 0x41e841
mov dword [esp + 0x4c], 0x40280000
mov dword [esp + 0x48], 0
movsd xmm1, qword [0x4ab9e8]
cmp dword [esp + 0x1c], 0
je 0x41e86c
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
movsd qword [esp + 0x44], xmm1
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x41e89c
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 0x41e8e2
sub esp, 0x14
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0xc], xmm0
lea esi, [esp + 0x30]
mov dword [esp], esi
call fcn.0041ea40
add esp, 0x14
lea eax, [ebx + 0xc]
push esi
push dword [esp + 0x3c]
push eax
call fcn.00414f20
add esp, 0xc
jmp 0x41e9b7
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test esi, esi
je 0x41e9b7
test eax, eax
je 0x41e9b7
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
test edi, edi
je 0x41e90e
mov ecx, edx
not ecx
add ecx, edi
cmp ecx, eax
jae 0x41e955
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 0x41e930
test edi, edi
je 0x41e95a
push esi
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 4]
jmp 0x41e98f
mov edi, dword [ebx + 8]
jmp 0x41e999
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x41e986
lea eax, [edx + 1]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx + 8]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x41e98c
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 sub.api_ms_win_crt_private_l1_1_0.dll_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 0x41e9ca
push dword [esp + 0x38]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41e9ed
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x41ea14
xor eax, eax
cmp dword [ebx + 0x10], 0
jne 0x41ea14
push dword [edi + 8]
push str.Unknown_terminal:__s
push ebx
call fcn.00472860
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 fcn.0041ea60
add esp, 4
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
jmp 0x41e771