Function at 0x402595
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 0x4025a3
push ebx
push esi
push edi
mov dword [0x430d04], 0
push 0
push 0x45dfab
call fcn.00404742
add esp, 8
cmp eax, 0
je 0x4025f7
push 0x45dfab
mov edi, dword [0x430d04]
mov esi, edi
add esi, 1
mov dword [0x430d04], esi
shl edi, 7
lea edi, [edi + 0x4326cc]
push edi
call fcn.0041ae2d
add esp, 8
push 0
push 0x45dfa3
call fcn.00404742
add esp, 8
cmp eax, 0
je 0x402634
push 0x45dfa3
mov edi, dword [0x430d04]
mov esi, edi
add esi, 1
mov dword [0x430d04], esi
shl edi, 7
lea edi, [edi + 0x4326cc]
push edi
call fcn.0041ae2d
add esp, 8
push 0
push 0x45df9b
call fcn.00404742
add esp, 8
cmp eax, 0
je 0x402671
push 0x45df9b
mov edi, dword [0x430d04]
mov esi, edi
add esi, 1
mov dword [0x430d04], esi
shl edi, 7
lea edi, [edi + 0x4326cc]
push edi
call fcn.0041ae2d
add esp, 8
push 0x430d0c
push 0x400
lea edi, [ebp - 0x404]
push edi
call sub.KERNEL32.dll_GetPrivateProfileSectionNamesA
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jle 0x402708
mov dword [ebp - 4], 0
jmp 0x4026fd
push 0
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
call fcn.00404742
add esp, 8
cmp eax, 0
je 0x4026ed
mov edi, dword [ebp - 4]
lea edi, [ebp + edi - 0x404]
push edi
mov edi, dword [0x430d04]
mov esi, edi
add esi, 1
mov dword [0x430d04], esi
shl edi, 7
lea edi, [edi + 0x4326cc]
push edi
call fcn.0041ae2d
add esp, 8
jmp 0x4026ed
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp byte [ebp + edi - 0x404], 0
jg 0x4026ea
inc dword [ebp - 4]
mov edi, dword [ebp - 0x408]
cmp dword [ebp - 4], edi
jl 0x40269f
push 0x400
push 0x423c2c
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.0041adb1
add esp, 0xc
push 0x423b2c
push pe_nt_image_headers32
lea edi, [ebp - 0x404]
push edi
push 0x45df8b
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.0040eae9
add esp, 8
cmp eax, 0
je 0x4027a9
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 + 0x423c2c]
push edi
call fcn.0041ae2d
add esp, 8
inc dword [ebp - 0x408]
cmp dword [ebp - 0x408], 8
jle 0x402728
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.1_110_50_650_410
push str.WindowPos
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42040c
push 0x420408
push 0x420404
push 0x420400
push 0x420420
push str._d__d__d__d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0x1c
mov edi, dword [0x420408]
sub edi, dword [0x420400]
mov dword [ebp - 4], edi
mov edi, dword [0x42040c]
sub edi, dword [0x420404]
mov dword [ebp - 0x408], edi
push dword [ebp - 0x408]
push dword [ebp - 4]
push 0x420404
push 0x420400
call fcn.0040247d
add esp, 0x10
mov edi, dword [0x420400]
add edi, dword [ebp - 4]
mov dword [0x420408], edi
mov edi, dword [0x420404]
add edi, dword [ebp - 0x408]
mov dword [0x42040c], edi
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df42
push str.MakeAsciiLine
push str.Macro
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x424150
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push 0x45df3a
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420428
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df2f
push str.Zoom
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42042c
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push str.NLsendrecv
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
mov edi, dword [ebp - 4]
mov dword [0x420430], edi
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df1a
push str.NLcode
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420434
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df2f
push str.NLtime
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x420438
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.E6E6E6
push str.ColorBackground
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.00402524
add esp, 4
mov dword [0x42044c], eax
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.0096FF
push str.ColorReceive
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.00402524
add esp, 4
mov dword [0x420454], eax
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.C86400
push str.ColorSend
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.00402524
add esp, 4
mov dword [0x420450], eax
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.888888
push str.ColorInfo
push 0x45df82
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x404]
push edi
call fcn.00402524
add esp, 4
mov dword [0x420458], eax
push 0x42396c
push 0xff
push 0x423a9c
push 0x45dead
push str.name
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push str.comnr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433b7c
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str.115200_1
push str.baud
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42496c
push 0x423a7c
push str._d__d
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0x10
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push str.RtsCts
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x424158
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df42
push str.protocol
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x45ed30
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
cmp dword [0x45ed30], 0
je 0x402bfe
mov dword [0x424158], 0
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push str.exclusive
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x430e10
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de6d
push str.timeout
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x433af4
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
mov edi, dword [0x433af4]
mov dword [0x45ed1c], edi
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de62
push str.rs485adr
push str.Transfer
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4326c0
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push str..Hardcopy.bmp
push 0x45de50
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4331dc
lea edi, [ebp - 0x404]
push edi
push 0x4330dc
call fcn.00401b52
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de35
push str.Sendfile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4331dc
lea edi, [ebp - 0x404]
push edi
push 0x42386c
call fcn.00401b52
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de35
push 0x45de2d
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4331dc
lea edi, [ebp - 0x404]
push edi
push 0x42403c
call fcn.00401b52
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de35
push str.Savefile
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4331dc
lea edi, [ebp - 0x404]
push edi
push 0x4284dc
call fcn.00401b52
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45de18
push str.Saveindex
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42414c
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
push 0x42396c
push 0xff
push 0x430e1c
push 0x45df8b
push str.AutoAnswer
push str.Filename
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df38
push str.useTable
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x423a80
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
mov dword [ebp - 4], 0
push dword [ebp - 4]
push str._03d
lea edi, [ebp - 0x404]
push edi
call fcn.0041adb1
add esp, 0xc
push 0x42396c
push 0xff
lea edi, [ebp - 0x404]
push edi
push 0x45df1a
lea edi, [ebp - 0x404]
push edi
push str.CodeTable
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x408]
push edi
push 0x45df3f
lea edi, [ebp - 0x404]
push edi
call fcn.0041acd4
add esp, 0xc
mov edi, dword [ebp - 0x408]
cmp edi, 0
jle 0x402ed6
cmp edi, 0xff
jg 0x402ed6
mov ebx, dword [ebp - 0x408]
jmp 0x402ed9
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov byte [edi + 0x42376c], bl
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xff
jle 0x402e62
mov dword [ebp - 4], 1
push dword [ebp - 4]
push str.Entry
push str._s_d
lea edi, [ebp - 0x404]
push edi
call fcn.0041adb1
add esp, 0x10
push 0x42396c
push 0x100
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x420460]
push edi
push 0x45df8b
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 + 0x420460], 0xa0
jne 0x402f89
mov edi, dword [ebp - 4]
shl edi, 8
lea edi, [edi + 0x420460]
push edi
call fcn.0041aea4
add esp, 4
push eax
mov edi, dword [ebp - 4]
shl edi, 8
lea esi, [edi + 0x420461]
push esi
lea edi, [edi + 0x420460]
push edi
call sub.CRTDLL.DLL_memmove
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x32
jle 0x402efa
push 0x45df8b
push 0x420460
call fcn.0041ae2d
add esp, 8
pop edi
pop esi
pop ebx
leave
ret