Function at 0x40fdbd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov ecx, 0x145
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40fdcb
push ebx
push esi
push edi
mov dword [0x43ab40], 0
push 0
push str.uniTFT
call fcn.0040db62
add esp, 8
cmp eax, 0
je 0x40fe1f
push str.uniTFT
mov edi, dword [0x43ab40]
mov esi, edi
add esi, 1
mov dword [0x43ab40], esi
shl edi, 7
lea edi, [edi + 0x43c508]
push edi
call fcn.0041b031
add esp, 8
push 0
push str.uniTFTs
call fcn.0040db62
add esp, 8
cmp eax, 0
je 0x40fe5c
push str.uniTFTs
mov edi, dword [0x43ab40]
mov esi, edi
add esi, 1
mov dword [0x43ab40], esi
shl edi, 7
lea edi, [edi + 0x43c508]
push edi
call fcn.0041b031
add esp, 8
push 0
push str.uniTFTm
call fcn.0040db62
add esp, 8
cmp eax, 0
je 0x40fe99
push str.uniTFTm
mov edi, dword [0x43ab40]
mov esi, edi
add esi, 1
mov dword [0x43ab40], esi
shl edi, 7
lea edi, [edi + 0x43c508]
push edi
call fcn.0041b031
add esp, 8
push 0x43ab48
push 0x400
lea edi, [ebp - 0x404]
push edi
call sub.KERNEL32.dll_GetPrivateProfileSectionNamesA
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jle 0x40ff30
mov dword [ebp - 4], 0
jmp 0x40ff25
push 0
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
call fcn.0040db62
add esp, 8
cmp eax, 0
je 0x40ff15
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
mov edi, dword [0x43ab40]
mov esi, edi
add esi, 1
mov dword [0x43ab40], esi
shl edi, 7
lea edi, [edi + 0x43c508]
push edi
call fcn.0041b031
add esp, 8
jmp 0x40ff15
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp byte [ebp + edi - 0x404], 0
jg 0x40ff12
inc dword [ebp - 4]
mov edi, dword [ebp - 0x408]
cmp dword [ebp - 4], edi
jl 0x40fec7
push 0x400
push 0x425768
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 4], 0
mov dword [ebp - 0x408], 1
push dword [ebp - 0x408]
push str.IP_d
lea edi, [ebp - 0x404]
push edi
call fcn.0041afb5
add esp, 0xc
push 0x425668
push pe_nt_image_headers32
lea edi, [ebp - 0x404]
push edi
push 0x46873b
lea edi, [ebp - 0x404]
push edi
push str.IPaddress
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
lea edi, [ebp - 0x514]
push edi
call fcn.00406b92
add esp, 8
cmp eax, 0
je 0x40ffd1
lea edi, [ebp - 0x488]
push edi
mov edi, dword [ebp - 4]
mov esi, edi
add esi, 1
mov dword [ebp - 4], esi
shl edi, 7
lea edi, [edi + 0x425768]
push edi
call fcn.0041b031
add esp, 8
inc dword [ebp - 0x408]
cmp dword [ebp - 0x408], 8
jle 0x40ff50
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.1_110_50_650_410
push str.WindowPos
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x421f48
push 0x421f44
push 0x421f40
push 0x421f3c
push 0x421f5c
push str._d__d__d__d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0x1c
mov edi, dword [0x421f44]
sub edi, dword [0x421f3c]
mov dword [ebp - 4], edi
mov edi, dword [0x421f48]
sub edi, dword [0x421f40]
mov dword [ebp - 0x408], edi
push dword [ebp - 0x408]
push dword [ebp - 4]
push 0x421f40
push 0x421f3c
call fcn.0040fca5
add esp, 0x10
mov edi, dword [0x421f3c]
add edi, dword [ebp - 4]
mov dword [0x421f44], edi
mov edi, dword [0x421f40]
add edi, dword [ebp - 0x408]
mov dword [0x421f48], edi
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686f2
push str.MakeAsciiLine
push str.Macro
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x425c8c
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push 0x4686ea
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x421f64
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686df
push str.Zoom
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x421f68
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push str.NLsendrecv
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [0x421f6c], edi
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686ca
push str.NLcode
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x421f70
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686df
push str.NLtime
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x421f74
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.E6E6E6
push str.ColorBackground
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fd4c
add esp, 4
mov dword [0x421f88], eax
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.0096FF
push str.ColorReceive
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fd4c
add esp, 4
mov dword [0x421f90], eax
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.C86400
push str.ColorSend
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fd4c
add esp, 4
mov dword [0x421f8c], eax
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.888888
push str.ColorInfo
push 0x468732
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fd4c
add esp, 4
mov dword [0x421f94], eax
push 0x4254a8
push 0xff
push 0x4255d8
push str.manual
push str.name
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push str.comnr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d9b8
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.115200_1
push str.baud
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4264a8
push 0x4255b8
push str._d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0x10
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push str.RtsCts
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x425c94
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686f2
push str.protocol
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43e9d0
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
cmp dword [0x43e9d0], 0
je 0x410426
mov dword [0x425c94], 0
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push str.exclusive
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43ac4c
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x46861d
push str.timeout
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d930
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
mov edi, dword [0x43d930]
mov dword [0x43e9bc], edi
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x468612
push str.rs485adr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43c4fc
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str..Hardcopy.bmp
push 0x468600
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d018
lea edi, [ebp - 0x404]
push edi
push 0x43cf18
call fcn.00411d1a
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4685e5
push str.Sendfile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d018
lea edi, [ebp - 0x404]
push edi
push 0x4253a8
call fcn.00411d1a
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4685e5
push 0x4685dd
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d018
lea edi, [ebp - 0x404]
push edi
push 0x425b78
call fcn.00411d1a
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4685e5
push str.Savefile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43d018
lea edi, [ebp - 0x404]
push edi
push 0x42a018
call fcn.00411d1a
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4685c8
push str.Saveindex
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x425c88
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
push 0x4254a8
push 0xff
push 0x43ac58
push 0x46873b
push str.AutoAnswer
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686e8
push str.useTable
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4255bc
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
mov dword [ebp - 4], 0
push dword [ebp - 4]
push str._03d
lea edi, [ebp - 0x404]
push edi
call fcn.0041afb5
add esp, 0xc
push 0x4254a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x4686ca
lea edi, [ebp - 0x404]
push edi
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x408]
push edi
push 0x4686ef
lea edi, [ebp - 0x404]
push edi
call fcn.0041aed8
add esp, 0xc
mov edi, dword [ebp - 0x408]
cmp edi, 0
jle 0x4106fe
cmp edi, 0xff
jg 0x4106fe
mov ebx, dword [ebp - 0x408]
jmp 0x410701
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov byte [edi + 0x4252a8], bl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xff
jle 0x41068a
mov dword [ebp - 4], 1
push dword [ebp - 4]
push str.Entry
push str._s_d
lea edi, [ebp - 0x404]
push edi
call fcn.0041afb5
add esp, 0x10
push 0x4254a8
push 0x100
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x421f9c]
push edi
push 0x46873b
lea edi, [ebp - 0x404]
push edi
push str.SendList
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp - 4]
shl edi, 8
cmp byte [edi + 0x421f9c], 0xa0
jne 0x4107b1
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x421f9c]
push edi
call fcn.0041b0a8
add esp, 4
push eax
mov edi, dword [ebp - 4]
shl edi, 8
lea esi, [edi + 0x421f9d]
push esi
lea edi, [edi + 0x421f9c]
push edi
call sub.CRTDLL.DLL_memmove
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x32
jle 0x410722
push 0x46873b
push 0x421f9c
call fcn.0041b031
add esp, 8
pop edi
pop esi
pop ebx
leave
ret