Function at 0x40fc59
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 0x40fc67
push ebx
push esi
push edi
mov dword [0x431840], 0
push 0
push str.uniTFT
call fcn.0040da02
add esp, 8
cmp eax, 0
je 0x40fcbb
push str.uniTFT
mov edi, dword [0x431840]
mov esi, edi
add esi, 1
mov dword [0x431840], esi
shl edi, 7
lea edi, [edi + 0x433208]
push edi
call fcn.0041aecd
add esp, 8
push 0
push str.uniTFTs
call fcn.0040da02
add esp, 8
cmp eax, 0
je 0x40fcf8
push str.uniTFTs
mov edi, dword [0x431840]
mov esi, edi
add esi, 1
mov dword [0x431840], esi
shl edi, 7
lea edi, [edi + 0x433208]
push edi
call fcn.0041aecd
add esp, 8
push 0
push str.uniTFTm
call fcn.0040da02
add esp, 8
cmp eax, 0
je 0x40fd35
push str.uniTFTm
mov edi, dword [0x431840]
mov esi, edi
add esi, 1
mov dword [0x431840], esi
shl edi, 7
lea edi, [edi + 0x433208]
push edi
call fcn.0041aecd
add esp, 8
push 0x431848
push 0x400
lea edi, [ebp - 0x404]
push edi
call sub.KERNEL32.dll_GetPrivateProfileSectionNamesA
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jle 0x40fdcc
mov dword [ebp - 4], 0
jmp 0x40fdc1
push 0
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
call fcn.0040da02
add esp, 8
cmp eax, 0
je 0x40fdb1
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
mov edi, dword [0x431840]
mov esi, edi
add esi, 1
mov dword [0x431840], esi
shl edi, 7
lea edi, [edi + 0x433208]
push edi
call fcn.0041aecd
add esp, 8
jmp 0x40fdb1
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp byte [ebp + edi - 0x404], 0
jg 0x40fdae
inc dword [ebp - 4]
mov edi, dword [ebp - 0x408]
cmp dword [ebp - 4], edi
jl 0x40fd63
push 0x400
push 0x424768
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.0041ae51
add esp, 0xc
push 0x424668
push pe_nt_image_headers32
lea edi, [ebp - 0x404]
push edi
push 0x45f723
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.00406b81
add esp, 8
cmp eax, 0
je 0x40fe6d
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 + 0x424768]
push edi
call fcn.0041aecd
add esp, 8
inc dword [ebp - 0x408]
cmp dword [ebp - 0x408], 8
jle 0x40fdec
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.1_110_50_650_410
push str.WindowPos
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420f48
push 0x420f44
push 0x420f40
push 0x420f3c
push 0x420f5c
push str._d__d__d__d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0x1c
mov edi, dword [0x420f44]
sub edi, dword [0x420f3c]
mov dword [ebp - 4], edi
mov edi, dword [0x420f48]
sub edi, dword [0x420f40]
mov dword [ebp - 0x408], edi
push dword [ebp - 0x408]
push dword [ebp - 4]
push 0x420f40
push 0x420f3c
call fcn.0040fb41
add esp, 0x10
mov edi, dword [0x420f3c]
add edi, dword [ebp - 4]
mov dword [0x420f44], edi
mov edi, dword [0x420f40]
add edi, dword [ebp - 0x408]
mov dword [0x420f48], edi
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6da
push str.MakeAsciiLine
push str.Macro
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x424c8c
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push 0x45f6d2
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420f64
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6c7
push str.Zoom
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420f68
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push str.NLsendrecv
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [0x420f6c], edi
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6b2
push str.NLcode
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420f70
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6c7
push str.NLtime
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420f74
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.E6E6E6
push str.ColorBackground
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fbe8
add esp, 4
mov dword [0x420f88], eax
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.0096FF
push str.ColorReceive
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fbe8
add esp, 4
mov dword [0x420f90], eax
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.C86400
push str.ColorSend
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fbe8
add esp, 4
mov dword [0x420f8c], eax
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.888888
push str.ColorInfo
push 0x45f71a
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.0040fbe8
add esp, 4
mov dword [0x420f94], eax
push 0x4244a8
push 0xff
push 0x4245d8
push str.manual
push str.name
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push str.comnr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4346b8
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.115200_1
push str.baud
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4254a8
push 0x4245b8
push str._d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0x10
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push str.RtsCts
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x424c94
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6da
push str.protocol
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4359d0
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
cmp dword [0x4359d0], 0
je 0x4102c2
mov dword [0x424c94], 0
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push str.exclusive
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x43194c
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f605
push str.timeout
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x434630
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
mov edi, dword [0x434630]
mov dword [0x4359bc], edi
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f5fa
push str.rs485adr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4331fc
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push str..Hardcopy.bmp
push 0x45f5e8
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433d18
lea edi, [ebp - 0x404]
push edi
push 0x433c18
call fcn.00411bb6
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f5cd
push str.Sendfile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433d18
lea edi, [ebp - 0x404]
push edi
push 0x4243a8
call fcn.00411bb6
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f5cd
push 0x45f5c5
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433d18
lea edi, [ebp - 0x404]
push edi
push 0x424b78
call fcn.00411bb6
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f5cd
push str.Savefile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433d18
lea edi, [ebp - 0x404]
push edi
push 0x429018
call fcn.00411bb6
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f5b0
push str.Saveindex
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x424c88
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
push 0x4244a8
push 0xff
push 0x431958
push 0x45f723
push str.AutoAnswer
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6d0
push str.useTable
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4245bc
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
mov dword [ebp - 4], 0
push dword [ebp - 4]
push str._03d
lea edi, [ebp - 0x404]
push edi
call fcn.0041ae51
add esp, 0xc
push 0x4244a8
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45f6b2
lea edi, [ebp - 0x404]
push edi
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x408]
push edi
push 0x45f6d7
lea edi, [ebp - 0x404]
push edi
call fcn.0041ad74
add esp, 0xc
mov edi, dword [ebp - 0x408]
cmp edi, 0
jle 0x41059a
cmp edi, 0xff
jg 0x41059a
mov ebx, dword [ebp - 0x408]
jmp 0x41059d
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov byte [edi + 0x4242a8], bl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xff
jle 0x410526
mov dword [ebp - 4], 1
push dword [ebp - 4]
push str.Entry
push str._s_d
lea edi, [ebp - 0x404]
push edi
call fcn.0041ae51
add esp, 0x10
push 0x4244a8
push 0x100
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x420f9c]
push edi
push 0x45f723
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 + 0x420f9c], 0xa0
jne 0x41064d
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x420f9c]
push edi
call fcn.0041af44
add esp, 4
push eax
mov edi, dword [ebp - 4]
shl edi, 8
lea esi, [edi + 0x420f9d]
push esi
lea edi, [edi + 0x420f9c]
push edi
call sub.CRTDLL.DLL_memmove
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x32
jle 0x4105be
push 0x45f723
push 0x420f9c
call fcn.0041aecd
add esp, 8
pop edi
pop esi
pop ebx
leave
ret