Function at 0x404d23
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov ecx, 0x43
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x404d31
push ebx
push esi
push edi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408ee
push str.Visible
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp + 0xc]
add edi, 0x1c
mov esi, dword [edi]
and esi, 0xfffffffe
mov ebx, dword [ebp - 4]
and ebx, 1
and ebx, 1
or esi, ebx
mov dword [edi], esi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408ec
push str.view
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp + 0xc]
add edi, 0x44
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408e8
push str.Zoom
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp + 0xc]
add edi, 0x48
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408ec
push str.NLsendrecv
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp + 0xc]
add edi, 0x1c
mov esi, dword [edi]
and esi, 0xfffffffd
mov ebx, dword [ebp - 4]
and ebx, 1
shl ebx, 1
and ebx, 2
or esi, ebx
mov dword [edi], esi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408e5
push str.NLcode
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp + 0xc]
add edi, 0x4c
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408e8
push str.NLtime
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp + 0xc]
add edi, 0x50
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push 0x5408ec
push 0x540bce
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 4]
push edi
push 0x540c2c
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp + 0xc]
add edi, 0x1c
mov esi, dword [edi]
and esi, 0xfffffffb
mov ebx, dword [ebp - 4]
and ebx, 1
shl ebx, 2
and ebx, 4
or esi, ebx
mov dword [edi], esi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.E6E6E6
push str.ColorBackground
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x104]
push edi
call fcn.00404cb2
add esp, 4
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x60], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.0096FF
push str.ColorReceive
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x104]
push edi
call fcn.00404cb2
add esp, 4
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x68], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.C86400
push str.ColorSend
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x104]
push edi
call fcn.00404cb2
add esp, 4
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x64], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.BBBBBB
push str.ColorBuffer
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x104]
push edi
call fcn.00404cb2
add esp, 4
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x6c], eax
mov edi, dword [ebp + 0xc]
mov dword [edi + 0x28], 0
push 0x4a24a4
push 0xff
mov edi, dword [ebp + 0xc]
add edi, 0x3378
push edi
push 0x5408c4
push str.BufferFile
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [0x4af564]
cmp dword [ebp + 0xc], edi
jne 0x40509d
push 0x4a24a4
push 0xff
mov edi, dword [ebp + 0xc]
add edi, 0x3478
push edi
push str..AutoAnswerRS232.txt
push str.AutoAnswer
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.50_650_590_1010
push str.WindowPos
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x405147
lea edi, [0x4a4c14]
cmp dword [ebp + 0xc], edi
jne 0x4050f3
push 0x4a24a4
push 0xff
mov edi, dword [ebp + 0xc]
add edi, 0x3478
push edi
push str..AutoAnswerSPI.txt
push str.AutoAnswer
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.580_650_1120_1010
push str.WindowPos
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x405147
lea edi, [0x4a9934]
cmp dword [ebp + 0xc], edi
jne 0x405147
push 0x4a24a4
push 0xff
mov edi, dword [ebp + 0xc]
add edi, 0x3478
push edi
push str..AutoAnswerI2C.txt
push str.AutoAnswer
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x104]
push edi
push str.1110_650_1650_1010
push str.WindowPos
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp + 0xc]
mov esi, edi
add esi, 0x2c
push esi
mov esi, edi
add esi, 0x28
push esi
mov esi, edi
add esi, 0x24
push esi
add edi, 0x20
push edi
push str._d__d__d__d
lea edi, [ebp - 0x104]
push edi
call fcn.00491acc
add esp, 0x18
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x28]
sub esi, dword [edi + 0x20]
mov dword [ebp - 0x108], esi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x2c]
sub esi, dword [edi + 0x24]
mov dword [ebp - 0x10c], esi
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
mov edi, dword [ebp + 0xc]
mov esi, edi
add esi, 0x24
push esi
add edi, 0x20
push edi
call fcn.00404c0b
add esp, 0x10
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x20]
add esi, dword [ebp - 0x108]
mov dword [edi + 0x28], esi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x24]
add esi, dword [ebp - 0x10c]
mov dword [edi + 0x2c], esi
mov dword [ebp - 4], 1
push dword [ebp - 4]
push str.Answer
push str._s_d
lea edi, [ebp - 0x104]
push edi
call fcn.00491c0d
add esp, 0x10
push 0x4a24a4
push 0x100
mov edi, dword [ebp - 4]
shl edi, 8
mov esi, dword [ebp + 0xc]
add esi, 0x78
add edi, esi
push edi
push 0x5408c4
lea edi, [ebp - 0x104]
push edi
push dword [ebp + 8]
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, dword [ebp - 4]
shl edi, 8
mov esi, dword [ebp + 0xc]
cmp byte [edi + esi + 0x78], 0xa0
jne 0x405266
mov edi, dword [ebp - 4]
shl edi, 8
mov esi, dword [ebp + 0xc]
add esi, 0x78
add edi, esi
push edi
call fcn.00491d08
add esp, 4
push eax
mov edi, dword [ebp - 4]
shl edi, 8
mov esi, dword [ebp + 0xc]
add esi, 0x78
add edi, esi
mov esi, edi
add esi, 1
push esi
push edi
call sub.CRTDLL.DLL_memmove
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x32
jle 0x4051d8
push 0x5408c4
mov edi, dword [ebp + 0xc]
add edi, 0x78
push edi
call fcn.00491c91
add esp, 8
pop edi
pop esi
pop ebx
leave
ret