Function at 0x574460
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ecx
mov eax, dword [0x6d0a40]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x574480
mov eax, 0x6d0a44
mov dword [0x6d0a40], eax
mov ebx, dword [sym.imp.MSVCR90.dll__stricmp]
mov esi, 0x6d0a44
cmp eax, esi
jbe 0x5744fb
nop
push ebp
push esi
call ebx
add esp, 8
test eax, eax
jne 0x5744bc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5744a0
sub eax, edx
lea eax, [eax + esi + 1]
push edi
push eax
call ebx
add esp, 8
test eax, eax
je 0x5745b3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5744c1
sub eax, edx
lea ecx, [esi + eax + 1]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5744d3
sub eax, esi
lea ecx, [ecx + eax + 1]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5744e5
sub eax, esi
lea esi, [ecx + eax + 1]
mov eax, dword [0x6d0a40]
cmp esi, eax
jb 0x574490
mov ecx, ebp
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x574500
mov edx, dword [0x6d0a40]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x574515
sub eax, esi
lea edx, [edx + eax + 1]
mov dword [0x6d0a40], edx
mov ecx, edi
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x574530
mov edx, dword [0x6d0a40]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x574545
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub eax, esi
cmp byte [0x6d0828], 0
lea ecx, [edx + eax + 1]
mov dword [0x6d0a40], ecx
jne 0x57472c
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x10], 2
mov edi, dword [esp + 0x10]
mov dword [0x65a3f0], 0xffffffff
jmp 0x574590
cmp dword [0x65a3f0], 0xffffffff
jne 0x57472c
cmp dword [esp + 0x10], 3
ja case.default.0x5745ac
mov edx, dword [esp + 0x10]
jmp dword [edx*4 + 0x574a2c]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5745b8
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5745c8
sub eax, edi
add eax, edx
lea esi, [eax + esi + 2]
push str.NOTFOUND
push esi
call ebx
add esp, 8
test eax, eax
jne 0x5745e8
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor esi, esi
cmp dword [esp + 0x10], 3
jne 0x5745fd
xor edi, edi
jmp 0x574630
cmp dword [str.tcimt.dll], 0
je 0x574630
mov eax, 0x65a3e0
jmp 0x574610
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x574630
inc esi
cmp dword [esi*4 + 0x65a3e0], edi
lea eax, [esi*4 + 0x65a3e0]
jne 0x574610
push 0x105
push 0x6d0828
push edi
call ebx
push 0x6d0930
push 0x6d0828
call fcn.0056b010
push 0x6d0828
push str.tbwin.ini
push 0
push 0x6d0930
call fcn.0056ae90
mov eax, dword [0x6d0a40]
add esp, 0x18
push 0x6d0828
mov ecx, 0x6d1244
sub ecx, eax
push ecx
push eax
push str.NOTFOUND
push 0
push 0
call ebp
cmp eax, 1
jle case.default.0x5745ac
mov edx, dword [0x6d0a40]
push str.NOTFOUND
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je case.default.0x5745ac
mov eax, dword [esp + 0x10]
mov dword [0x65a3f0], eax
jmp case.default.0x5745ac
push 0x104
push str.tbwin.ini
push 0x6d0828
call dword [sym.imp.MSVCR90.dll_strncpy]
mov eax, dword [0x6d0a40]
add esp, 0xc
push 0x6d0828
mov ecx, 0x6d1244
sub ecx, eax
push ecx
push eax
push str.NOTFOUND
push 0
push 0
mov byte [0x6d092c], 0
call ebp
cmp eax, 1
jle case.default.0x5745ac
mov edx, dword [0x6d0a40]
push str.NOTFOUND
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je case.default.0x5745ac
mov dword [0x65a3f0], 1
jmp case.default.0x5745ac
mov dword [0x65a3f0], 0
sub dword [esp + 0x10], 1
jns 0x574590
cmp dword [0x65a3f0], 0
mov esi, dword [esp + 0x18]
jle 0x574759
mov eax, dword [0x6d0a40]
mov edx, dword [esp + 0x1c]
push 0x6d0828
mov ecx, 0x6d1244
sub ecx, eax
push ecx
push eax
push str.NOTFOUND
push esi
push edx
call ebp
cmp dword [0x65a3f0], 0
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
je 0x574780
mov eax, dword [0x6d0a40]
push str.NOTFOUND
push eax
call edi
add esp, 8
test eax, eax
jne 0x5749eb
push esi
push str.TRANSBASE_SERVICENAMES
call edi
add esp, 8
test eax, eax
jne 0x5747ea
push str.DEMO_TRANSBASE_SERVICENAMES
call dword [sym.imp.MSVCR90.dll_getenv]
mov edx, dword [0x6d0a40]
add esp, 4
test eax, eax
je 0x5747bf
mov ecx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5747b0
jmp 0x5749eb
mov ecx, dword [str.2024:2025]
mov dword [edx], ecx
mov eax, dword [0x5b2c28]
mov ecx, dword [0x6d0a40]
mov dword [ecx + 4], eax
mov dx, word [0x5b2c2c]
mov eax, dword [0x6d0a40]
mov word [eax + 8], dx
jmp 0x5749eb
push esi
push str.SERVICENAME
call edi
add esp, 8
test eax, eax
jne 0x574868
push str.DEMO_SERVICENAME
call dword [sym.imp.MSVCR90.dll_getenv]
mov edx, dword [0x6d0a40]
add esp, 4
test eax, eax
je 0x574822
mov ecx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x574813
jmp 0x5749eb
mov ecx, dword [str.Transbase_Dienst]
mov dword [edx], ecx
mov eax, dword [0x5b2bf4]
mov ecx, dword [0x6d0a40]
mov dword [ecx + 4], eax
mov edx, dword [0x5b2bf8]
mov eax, dword [0x6d0a40]
mov dword [eax + 8], edx
mov ecx, dword [0x5b2bfc]
mov edx, dword [0x6d0a40]
mov dword [edx + 0xc], ecx
mov al, byte [0x5b2c00]
mov ecx, dword [0x6d0a40]
mov byte [ecx + 0x10], al
jmp 0x5749eb
push esi
push str.TRANSBASE_LOCAL
call edi
add esp, 8
test eax, eax
jne 0x5748a4
push str.DEMO_TRANSBASE_LOCAL
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x5749eb
mov edx, dword [0x6d0a40]
mov ecx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x574895
jmp 0x5749eb
push esi
push str.TRANSBASE
call edi
add esp, 8
test eax, eax
jne 0x5748cf
mov edx, dword [0x6d0a40]
mov ecx, 0x6d0930
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5748c0
jmp 0x5749eb
push esi
push str.LINKED_IN
call edi
add esp, 8
test eax, eax
jne 0x5748ef
mov edx, dword [0x6d0a40]
mov dword [edx], 0x66666f
jmp 0x5749eb
push esi
push str.TBKERNELDLL32
call edi
add esp, 8
test eax, eax
jne 0x57491d
mov eax, dword [0x6d0a40]
push eax
push str.tbker32.dll
push 0
push 0x6d0930
call fcn.0056ae90
add esp, 0x10
jmp 0x5749eb
push esi
push str.TBKERNELDLL16
call edi
add esp, 8
test eax, eax
jne 0x57494b
mov ecx, dword [0x6d0a40]
push ecx
push str.tbker16.dll
push eax
push 0x6d0930
call fcn.0056ae90
add esp, 0x10
jmp 0x5749eb
push esi
push str.HOSTACCESS32
call edi
add esp, 8
test eax, eax
jne 0x574976
mov edx, dword [0x6d0a40]
push edx
push str.tbwsoc32.dll
push eax
push 0x6d0930
call fcn.0056ae90
add esp, 0x10
jmp 0x5749eb
push esi
push str.HOSTACCESS16
call edi
add esp, 8
test eax, eax
jne 0x5749a1
mov eax, dword [0x6d0a40]
push eax
push str.tbwsoc16.dll
push 0
push 0x6d0930
call fcn.0056ae90
add esp, 0x10
jmp 0x5749eb
push esi
push str.EDITOR
call edi
mov edx, dword [0x6d0a40]
add esp, 8
test eax, eax
jne 0x5749dc
mov ecx, dword [str.notepad.exe]
mov dword [edx], ecx
mov eax, dword [0x5b2b5c]
mov ecx, dword [0x6d0a40]
mov dword [ecx + 4], eax
mov edx, dword [0x5b2b60]
mov eax, dword [0x6d0a40]
mov dword [eax + 8], edx
jmp 0x5749eb
mov ecx, str.NOTFOUND
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5749e1
mov ecx, dword [0x6d0a40]
push str.NOTFOUND
push ecx
call edi
mov esi, dword [0x6d0a40]
add esp, 8
neg eax
sbb eax, eax
mov ecx, esi
and eax, esi
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x574a10
sub ecx, edi
pop edi
lea edx, [esi + ecx + 1]
pop esi
pop ebp
mov dword [0x6d0a40], edx
pop ebx
pop ecx
ret