Function at 0x420b30
Capabilities:
Get file version info
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push 0x4ac158
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x420ca0
cmp dword [ebx + 4], 6
jae 0x420d06
mov edi, esi
mov dword [esp], ebp
push str.TERM_PROGRAM_VERSION
call sym._getenv
add esp, 4
test eax, eax
je 0x420be8
mov ebp, eax
push 0x4ac1a8
call sym._getenv
add esp, 4
test eax, eax
je 0x420be8
mov esi, eax
push eax
call sym._strlen
add esp, 4
cmp dword [ebx + 4], eax
jb 0x420bb5
push eax
push esi
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4210be
push str.vscode
push esi
call sym._strcmp
add esp, 8
test eax, eax
jne 0x420be8
cmp dword [ebx + 4], 4
jb 0x420be8
push 4
push str.code
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4210be
push str.LC_TERMINAL_VERSION
call sym._getenv
add esp, 4
test eax, eax
je 0x420cda
mov esi, eax
push str.LC_TERMINAL
call sym._getenv
add esp, 4
test eax, eax
je 0x420cda
mov ebp, eax
push eax
call sym._strlen
add esp, 4
cmp dword [ebx + 4], eax
jb 0x420c36
push eax
push ebp
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x420c89
push str.vscode
push ebp
call sym._strcmp
add esp, 8
test eax, eax
jne 0x420c65
cmp dword [ebx + 4], 4
jb 0x420c65
push 4
push str.code
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x420c89
push 5
push str.iTerm
push ebp
call sym._strncmp
add esp, 0xc
test eax, eax
jne 0x420cda
mov ecx, ebx
mov edx, str.iTermServer_
call sym._ffStrbufStartsWithIgnCaseS
test al, al
je 0x420cda
mov ebx, dword [esp]
cmp dword [ebx], 0
je 0x4211fb
mov eax, dword [ebx + 8]
mov byte [eax], 0
jmp 0x421203
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp], ebp
je 0x420dc3
mov ecx, eax
mov edi, eax
nop word cs:[eax + eax]
sub edi, 1
jb 0x420dca
mov edx, dword [esi + 8]
cmp byte [edx + ecx - 1], 0x5c
mov ecx, edi
jne 0x420cc0
jmp 0x420dcc
cmp dword [ebx + 4], 4
jb 0x420cfb
push 4
push str.tmux
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x420fb4
mov ecx, dword [edi + 8]
mov edx, dword [esp]
jmp 0x42139d
push 6
push 0x4ac16c
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x420e41
mov eax, dword [ebx + 4]
cmp eax, 9
jb 0x420d47
push 9
push str.alacritty
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4210d5
mov eax, dword [ebx + 4]
cmp eax, 7
jb 0x420d6a
push 7
push str.contour
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4210e5
mov eax, dword [ebx + 4]
cmp eax, 6
jb 0x420b66
push 6
push str.screen
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x421143
cmp dword [ebx + 4], 6
jb 0x420b66
push 6
push str.zellij
push dword [ebx + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x420b66
mov ecx, esi
mov edx, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.getTerminalVersionZellij
mov edi, 1
jmp 0x420dcd
mov edi, eax
inc edi
mov ebx, dword [0x5052b0]
mov ebp, 0x20
mov cl, 1
test edi, edi
mov dword [esp + 4], esi
je 0x420e3d
mov esi, dword [esi + 8]
test esi, esi
je 0x420e3d
lea eax, [edi + 1]
mov ecx, 0x20
nop word cs:[eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x420e00
push ebp
call sym._malloc
add esp, 4
mov ebx, eax
mov byte [eax], 0
push edi
push esi
push eax
call sym._memcpy
add esp, 0xc
mov byte [ebx + edi], 0
test ebp, ebp
je 0x420e65
mov eax, edi
not eax
add eax, ebp
mov esi, 1
cmp eax, 0xc
ja 0x420eab
xor ecx, ecx
jmp 0x420e6c
xor edi, edi
jmp 0x420e6c
push str.ConEmuBuild
call sym._getenv
add esp, 4
mov ebx, eax
cmp dword [ebp], 0
je 0x42106d
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x421075
mov ebp, 0x20
mov cl, 1
lea eax, [edi + 0xe]
nop
mov esi, ebp
add ebp, ebp
cmp eax, esi
ja 0x420e70
test cl, cl
je 0x420e9f
push esi
call sym._malloc
add esp, 4
test edi, edi
je 0x420fa5
lea ecx, [edi + 1]
push ecx
push ebx
push eax
mov ebx, eax
call sym._memcpy
add esp, 0xc
jmp 0x420eab
push esi
push ebx
call sym._realloc
add esp, 8
mov ebx, eax
mov ebp, dword [esp]
mov dword [ebx + edi + 8], 0x6d782e6f
mov dword [ebx + edi + 4], 0x666e4964
mov dword [ebx + edi], 0x6c697542
mov word [ebx + edi + 0xc], 0x6c
mov dword [esp + 8], str.StoreVersion_
mov dword [esp + 0xc], ebp
lea eax, [esp + 8]
push eax
push 1
push ebx
call dbg.ffParsePropFileValues
add esp, 0xc
test al, al
mov dword [esp + 0x14], ebx
je 0x420f88
mov eax, dword [ebp + 4]
mov bl, 1
test eax, eax
je 0x42112a
mov edi, dword [ebp + 8]
cmp byte [eax + edi - 1], 0x22
jne 0x42112a
inc eax
mov ebx, eax
add eax, 0xfffffffe
mov dword [ebp + 4], eax
cmp ebx, 2
je 0x421119
lea eax, [ebx - 1]
cmp byte [edi + ebx - 3], 0x22
je 0x420f10
cmp dword [ebp], 0
jne 0x421123
lea ecx, [eax - 1]
mov dword [esp + 4], ecx
mov dword [ebp + 4], 0
mov ecx, 0x20
nop dword [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x420f50
push ebp
call sym._malloc
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp]
mov dword [ecx + 8], eax
mov dword [ecx], ebp
mov ebp, dword [esp + 4]
push ebp
push edi
push eax
mov edi, eax
call sym._memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [eax + 4], ebp
jmp 0x421123
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
mov edx, ebp
call dbg.getFileVersion
mov ebx, eax
test esi, esi
jne 0x421132
jmp 0x42154d
mov byte [eax], 0
xor edi, edi
mov ebp, dword [esp]
mov ebx, eax
jmp 0x420eae
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x4ac2cb
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
push 0
push eax
mov ebp, dword [esp + 8]
push ebp
call dbg.ffProcessAppendOutput
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x42154d
mov eax, dword [ebp + 4]
test eax, eax
je 0x4214f3
mov esi, dword [ebp + 8]
movzx ecx, byte [eax + esi - 1]
cmp cl, 0xa
jne 0x42145d
inc eax
mov ebx, eax
add eax, 0xfffffffe
mov dword [ebp + 4], eax
cmp ebx, 2
je 0x42143b
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0xa
je 0x421006
cmp dword [ebp], 0
jne 0x421445
lea edi, [eax - 1]
mov dword [ebp + 4], 0
mov ecx, 0x20
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x42103a
push ebp
call sym._malloc
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp]
mov dword [ecx + 8], eax
mov dword [ecx], ebp
mov ebp, ecx
push edi
push esi
push eax
mov esi, eax
call sym._memcpy
add esp, 0xc
mov dword [ebp + 4], edi
jmp 0x421445
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
test ebx, ebx
mov edi, ebp
je 0x421398
push ebx
call sym._strlen
add esp, 4
test eax, eax
je 0x421398
mov ebp, eax
mov dword [esp], edi
mov eax, dword [edi]
mov ecx, eax
sub ecx, 1
jb 0x4211ba
cmp ecx, ebp
jb 0x4211ba
mov edi, dword [esp]
mov eax, dword [edi + 8]
xor ecx, ecx
jmp 0x421370
mov esi, dword [esp]
cmp dword [esi], 0
je 0x421277
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x42127f
mov ecx, esi
mov edx, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.getExeVersionGeneral
mov edi, esi
push str.TERMINAL_VERSION_STRING
call sym._getenv
add esp, 4
test eax, eax
je 0x4212fb
mov esi, eax
push eax
call sym._strlen
add esp, 4
push esi
push eax
push ebp
call sym._ffStrbufAppendNS
add esp, 0xc
mov bl, 1
jmp 0x42154d
cmp dword [ebp], 0
je 0x421331
mov byte [edi + ebx - 2], 0
mov bl, 1
test esi, esi
je 0x42154d
push dword [esp + 0x14]
call sym._free
add esp, 4
jmp 0x42154d
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.__version
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
push 0
push eax
push ebp
call dbg.ffProcessAppendOutput
add esp, 0xc
test eax, eax
jne 0x42132a
push 0xa
push ebp
call dbg.ffStrbufTrimRight
add esp, 8
push 0x20
push ebp
call dbg.ffStrbufTrimRight
add esp, 8
push 0xe
push ebp
call sym._ffStrbufSubstrAfter
add esp, 8
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
push esi
push 0x20
push edi
call sym._memchr
add esp, 0xc
mov ecx, eax
sub ecx, edi
test eax, eax
cmove ecx, esi
push ecx
push ebp
call sym._ffStrbufSubstrBefore
jmp 0x42142f
mov dword [esp + 4], esi
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, ebp
inc edx
nop dword [eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x4211d0
test eax, eax
je 0x421356
push esi
mov edi, dword [esp + 4]
push dword [edi + 8]
call sym._realloc
add esp, 8
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
jmp 0x42136a
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
push esi
call sym._strlen
add esp, 4
test eax, eax
je 0x4212af
mov edi, eax
mov eax, dword [ebx]
mov ecx, eax
sub ecx, 1
jb 0x421234
cmp ecx, edi
jb 0x421234
mov eax, dword [ebx + 8]
xor ecx, ecx
jmp 0x4213be
mov ebp, esi
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, edi
inc edx
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x421250
test eax, eax
je 0x4213a9
push esi
push dword [ebx + 8]
call sym._realloc
add esp, 8
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 4]
jmp 0x4213ba
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
push ebp
call sym._strlen
add esp, 4
test eax, eax
je 0x4212af
mov ebx, eax
mov eax, dword [esi]
mov ecx, eax
sub ecx, 1
jb 0x4212b6
cmp ecx, ebx
jb 0x4212b6
mov edi, dword [esp]
mov eax, dword [edi + 8]
xor ecx, ecx
jmp 0x4213ee
mov bl, 1
jmp 0x42154d
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov edx, ebx
inc edx
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x4212d0
test eax, eax
je 0x4213d8
push esi
mov edi, dword [esp + 4]
push dword [edi + 8]
call sym._realloc
add esp, 8
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
jmp 0x4213ec
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.__version
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
push 0
push eax
push ebp
call dbg.ffProcessAppendOutput
add esp, 0xc
test eax, eax
je 0x421411
xor ebx, ebx
jmp 0x42154d
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
mov bl, 1
test esi, esi
jne 0x421132
jmp 0x42154d
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov edi, dword [esp]
mov dword [edi + 8], eax
xor ecx, ecx
mov dword [edi], esi
mov esi, dword [esp + 4]
add ecx, eax
push ebp
push ebx
push ecx
call sym._memcpy
add esp, 0xc
mov eax, dword [edi + 4]
add eax, ebp
mov dword [edi + 4], eax
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
mov bl, 1
cmp dword [edi + 4], 0
jne 0x42154d
mov ecx, dword [esi + 8]
mov edx, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.getFileVersion
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [ebx + 8], eax
xor ecx, ecx
mov dword [ebx], esi
mov esi, ebp
add ecx, eax
push edi
push esi
push ecx
call sym._memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, edi
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
jmp 0x421406
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov edi, dword [esp]
mov dword [edi + 8], eax
xor ecx, ecx
mov dword [edi], esi
add ecx, eax
push ebx
push ebp
push ecx
call sym._memcpy
add esp, 0xc
mov eax, dword [edi + 4]
add eax, ebx
mov dword [edi + 4], eax
mov ecx, dword [edi + 8]
mov byte [ecx + eax], 0
mov bl, 1
jmp 0x42154d
push 0xa
push ebp
call dbg.ffStrbufTrimRight
add esp, 8
push 0x20
push ebp
call dbg.ffStrbufTrimRight
add esp, 8
push 0x20
push ebp
call dbg.ffStrbufSubstrAfterFirstC
add esp, 8
cmp dword [ebp + 4], 0
jmp 0x42154a
cmp dword [ebp], 0
je 0x4214db
mov byte [esi + ebx - 2], 0
mov eax, dword [ebp + 4]
test eax, eax
je 0x4214f1
mov esi, dword [ebp + 8]
movzx ecx, byte [eax + esi - 1]
cmp cl, 0x20
jne 0x4214c7
inc eax
mov ebx, eax
add eax, 0xfffffffe
mov dword [ebp + 4], eax
cmp ebx, 2
je 0x4214cb
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x20
je 0x421463
cmp dword [ebp], 0
jne 0x4214d1
lea ecx, [eax - 1]
mov dword [esp + 0x14], ecx
mov dword [ebp + 4], 0
mov ecx, 0x20
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x421493
push ebp
call sym._malloc
add esp, 4
mov byte [eax], 0
mov edi, dword [esp]
mov dword [edi + 8], eax
mov dword [edi], ebp
mov ebp, edi
mov edi, dword [esp + 0x14]
push edi
push esi
push eax
mov esi, eax
call sym._memcpy
add esp, 0xc
mov dword [ebp + 4], edi
jmp 0x4214d1
mov ebx, eax
jmp 0x4214f3
cmp dword [ebp], 0
je 0x4214db
mov byte [esi + ebx - 2], 0
mov ebx, dword [ebp + 4]
jmp 0x4214f3
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
xor ebx, ebx
mov esi, dword [ebp + 8]
push ebx
push 0x20
push esi
call sym._memchr
add esp, 0xc
mov edi, eax
sub edi, esi
test eax, eax
cmove edi, ebx
mov eax, ebx
sub eax, edi
jbe 0x42153c
cmp dword [ebp], 0
je 0x421540
lea eax, [esi + edi]
inc eax
not edi
add ebx, edi
push ebx
push eax
push esi
call sym._memmove
add esp, 0xc
add edi, dword [ebp + 4]
mov dword [ebp + 4], edi
mov eax, dword [ebp + 8]
mov byte [eax + edi], 0
mov eax, dword [ebp + 4]
jmp 0x421548
mov eax, ebx
jmp 0x421548
mov dword [ebp + 4], eax
add esi, edi
mov dword [ebp + 8], esi
test eax, eax
setne bl
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret