Function at 0x40528c
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov ecx, 0x45
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40529a
push ebx
push esi
push edi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x54084e
push str.SIMpath
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00491d08
add esp, 4
mov dword [ebp - 0x104], eax
cmp eax, 0
jne 0x4052fa
push 0x4b47e4
push 0x4a2fa4
call fcn.00491c91
add esp, 8
jmp 0x405337
mov edi, dword [ebp - 0x104]
cmp byte [ebp + edi - 0x101], 0x5c
je 0x40531e
push 0x54084c
lea edi, [ebp - 0x100]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x4b47e4
lea edi, [ebp - 0x100]
push edi
push 0x4a2fa4
call fcn.00401c00
add esp, 0xc
push 0x4a2fa4
call sub.KERNEL32.dll_SetCurrentDirectoryA
mov edi, eax
cmp edi, 0
je 0x405357
push 0x54083b
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x405369
push 0x4b47e4
push 0x4a2fa4
call fcn.00491c91
add esp, 8
push 0x4b47e4
call sub.KERNEL32.dll_SetCurrentDirectoryA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.480_272
push str.Size
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4bf2a8
push 0x4bf298
push str._d_c_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
mov di, word [0x4bf298]
mov word [0x4bf284], di
mov di, word [0x4bf2a8]
mov word [0x4bf28c], di
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.360_100
push str.WindowPos
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4af54c
push 0x4aed8c
push str._d_c_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
push 0xf0
push 0x140
push 0x4af54c
push 0x4aed8c
call fcn.00404c0b
add esp, 0x10
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.Zoom
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b490c
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Angle
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a1c9c
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.OnTop
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a25a8
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.ShowFrame
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a14e0
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Border
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a2474
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push 0x540817
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4ebb00
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
cmp dword [0x4ebb00], 0
je 0x4055b8
xor dword [0x4ebb00], 0xa4b638e5
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.ActiveAreaRGB
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x110]
push edi
lea edi, [ebp - 0x10c]
push edi
lea edi, [ebp - 0x108]
push edi
push str._d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x14
mov dword [ebp - 0x104], eax
cmp eax, 3
jne 0x40563e
mov edi, dword [ebp - 0x108]
shl edi, 0x18
mov esi, dword [ebp - 0x10c]
shl esi, 0x10
or edi, esi
mov esi, dword [ebp - 0x110]
shl esi, 8
or edi, esi
or edi, 0xff
mov dword [0x4a40a4], edi
jmp 0x405648
mov dword [0x4a40a4], 0
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408e8
push str.PLCstartTime
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4904
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
cmp dword [0x4b4904], 1
jge 0x405699
mov dword [0x4b4904], 1
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.SmartDeploy
push 0x540c4b
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aec38
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x54084e
push str.PNGpath
push str.MODULE
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00491d08
add esp, 4
mov dword [ebp - 0x104], eax
cmp eax, 0
jne 0x40572a
push 0x4b47e4
push 0x4ae904
call fcn.00491c91
add esp, 8
jmp 0x405767
mov edi, dword [ebp - 0x104]
cmp byte [ebp + edi - 0x101], 0x5c
je 0x40574e
push 0x54084c
lea edi, [ebp - 0x100]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x4b47e4
lea edi, [ebp - 0x100]
push edi
push 0x4ae904
call fcn.00401c00
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x540806
push str.FlashMB
push str.MODULE
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a14d8
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.EditMode
push str.MODULE
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x104]
push edi
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
cmp dword [ebp - 0x104], 0
je 0x4057f5
mov ebx, 1
jmp 0x4057fa
mov ebx, 0
mov dword [0x4aec40], ebx
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push 0x540c29
push str.MODULE
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aec64
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [0x4aec64]
cmp edi, 0
jl 0x40584e
cmp edi, 0xa
jle 0x405858
mov dword [0x4aec64], 0
mov edi, dword [0x4aec64]
mov dword [0x4a1cac], edi
mov dword [ebp - 0x104], 0
mov edi, dword [ebp - 0x104]
add edi, 1
push edi
push 0x540c3c
lea edi, [ebp - 0x100]
push edi
call fcn.00491c0d
add esp, 0xc
push 0x4a24a4
push 0x7f
mov edi, dword [ebp - 0x104]
shl edi, 7
lea edi, [edi + 0x4b42b4]
push edi
push 0x5408c4
lea edi, [ebp - 0x100]
push edi
push str.MODULE
call sub.KERNEL32.dll_GetPrivateProfileStringA
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 0xa
jl 0x40586e
push 0x4a24a4
push 0xff
push 0x4aed04
push 0x5407ff
push str.SlaveName
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.SlaveCOMnr
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4ae678
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.115200
push str.SlaveBaud
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a4c08
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.SlaveProtocol
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4ae8
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.SlaveConnect
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a1c98
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
push 0x4a4b64
push 0x5407ff
push str.MasterName
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ec
push str.MasterCOMnr
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4acc
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.MasterConnect
push 0x540b14
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b47c0
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Visible
push str.IOPORT
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a4b54
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.extPort
push str.IOPORT
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a1cb4
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.35_300
push str.WindowPos
push str.IOPORT
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4ad4
push 0x4a14dc
push str._d_c_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
push 0x6e
push 0x14a
push 0x4b4ad4
push 0x4a14dc
call fcn.00404c0b
add esp, 0x10
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5407ed
push 0x540a9c
push str.IOPORT
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [ebp - 0x100], 0x24
jne 0x405ba6
lea edi, [ebp - 0x104]
push edi
push 0x5407e9
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
jmp 0x405bc1
lea edi, [ebp - 0x104]
push edi
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp - 0x104]
mov ebx, edi
mov byte [0x50b85c], bl
mov byte [0x50b8a4], bl
mov dword [ebp - 0x104], 0
push dword [ebp - 0x104]
push str.PE_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491c0d
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str._FFFF
lea edi, [ebp - 0x100]
push edi
push str.IOPORT
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [ebp - 0x100], 0x24
jne 0x405c46
lea edi, [ebp - 0x108]
push edi
push 0x5407e9
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
jmp 0x405c61
lea edi, [ebp - 0x108]
push edi
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp - 0x104]
mov esi, dword [ebp - 0x108]
mov word [edi*2 + 0x50b8b4], si
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 8
jl 0x405bdf
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Visible
push str.ANALOGIN
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b47d4
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.965_100
push str.WindowPos
push str.ANALOGIN
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aec28
push 0x4b47d0
push str._d_c_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
push 0x12c
push 0xdc
push 0x4aec28
push 0x4b47d0
call fcn.00404c0b
add esp, 0x10
mov dword [ebp - 0x104], 0
push dword [ebp - 0x104]
push str.AnIn_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491c0d
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
lea edi, [ebp - 0x100]
push edi
push str.ANALOGIN
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x108]
push edi
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
mov edi, dword [ebp - 0x104]
shl edi, 1
mov esi, dword [ebp - 0x108]
mov word [edi + 0x50b7fc], si
mov word [edi + 0x50b7f4], si
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 4
jl 0x405d2f
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Visible
push str.PWMOUT
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aecdc
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.35_100
push str.WindowPos
push str.PWMOUT
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a1cc0
push 0x4aed00
push str._d_c_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
push 0xc8
push 0x14a
push 0x4a1cc0
push 0x4aed00
call fcn.00404c0b
add esp, 0x10
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Visible
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4910
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
push 0x4a1518
push str.0_9_N
push str.RangeReg
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
push 0x4a40d8
push str.0_9_N
push str.RangeStr
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov dword [0x4b52dc], 0
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.100_320_800_650_330
push str.WindowPos
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4908
push 0x4b52e0
push 0x4b52dc
push 0x4b52d8
push 0x4b52d4
push str._d__d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x1c
cmp eax, 5
je 0x405f48
mov dword [0x4b4908], 0
mov edi, dword [0x4b52dc]
sub edi, dword [0x4b52d4]
mov dword [ebp - 0x108], edi
mov edi, dword [0x4b52e0]
sub edi, dword [0x4b52d8]
mov dword [ebp - 0x10c], edi
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
push 0x4b52d8
push 0x4b52d4
call fcn.00404c0b
add esp, 0x10
mov edi, dword [0x4b52d4]
add edi, dword [ebp - 0x108]
mov dword [0x4b52dc], edi
mov edi, dword [0x4b52d8]
add edi, dword [ebp - 0x10c]
mov dword [0x4b52e0], edi
mov dword [0x50b644], 0x41
mov dword [0x4f76d0], 0x38
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str._1_38_76_76_65_56
push str.RegList
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4f76d0
push 0x50b644
push 0x4f7a84
push 0x4f7a7c
push 0x4f7a80
push 0x4f7a8c
push str._d__d__d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x20
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str._1_38_38
push str.StrList
push str.REGISTER
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x50b714
push 0x50b63c
push 0x4f7a88
push str._d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x14
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push str.Visible
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aec34
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
push 0x4aedc4
push 0x5408ec
push 0x540a1b
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
push 0x4a1cf4
push 0x54079d
push 0x540a17
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
push 0x4aedd8
push 0x540799
push 0x540a10
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
push 0x4a1d08
push 0x540799
push 0x540a09
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aedd4
push 0x540c2c
push 0x4aedc4
call fcn.00491acc
add esp, 0xc
cmp eax, 1
je 0x406151
mov dword [0x4aedd4], 0xffffffff
push 0x4a1d04
push 0x540c2c
push 0x4a1cf4
call fcn.00491acc
add esp, 0xc
cmp eax, 1
je 0x406177
mov dword [0x4a1d04], 0xffffffff
mov dword [0x4a30bc], 0
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.966_570_1486_960
push str.WindowPos
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4ae660
push 0x4a30c0
push 0x4a30bc
push 0x4a30b8
push 0x4a30b4
push str._d__d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x1c
cmp eax, 5
je 0x4061e2
mov dword [0x4ae660], 0
mov edi, dword [0x4a30bc]
sub edi, dword [0x4a30b4]
mov dword [ebp - 0x108], edi
mov edi, dword [0x4a30c0]
sub edi, dword [0x4a30b8]
mov dword [ebp - 0x10c], edi
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
push 0x4a30b8
push 0x4a30b4
call fcn.00404c0b
add esp, 0x10
mov edi, dword [0x4a30b4]
add edi, dword [ebp - 0x108]
mov dword [0x4a30bc], edi
mov edi, dword [0x4a30b8]
add edi, dword [ebp - 0x10c]
mov dword [0x4a30c0], edi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.38_76_76_38
push 0x540a03
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a14cc
push 0x4a14b4
push 0x4a14bc
push 0x4a14c4
push str._d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x18
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.38_76_76_38
push 0x5409fd
push str.ARRAY
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a14b8
push 0x4a14c0
push 0x4a14d0
push 0x4a14c8
push str._d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x18
push 0x4af564
push 0x5409f1
call fcn.00404d23
add esp, 8
lea edi, [0x4e88b8]
mov dword [0x4af5c0], edi
push 0x4a4c14
push 0x5409e7
call fcn.00404d23
add esp, 8
lea edi, [0x4e90d8]
mov dword [0x4a4c70], edi
push 0x4a9934
push 0x5409dd
call fcn.00404d23
add esp, 8
lea edi, [0x4e8098]
mov dword [0x4a9990], edi
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408ee
push 0x5409cf
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x513040
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
cmp word [0x513040], 0
je 0x40638b
mov ebx, 0x55aa4205
jmp 0x406390
mov ebx, 0
mov dword [0x4b52e4], ebx
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408e8
push 0x5409c6
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a4b5c
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
movzx edi, word [0x4a4b5c]
cmp edi, 0xa
je 0x406408
cmp edi, 0x14
je 0x406408
cmp edi, 0x32
je 0x406408
cmp edi, 0x64
je 0x406408
cmp edi, 0xfa
je 0x406408
cmp edi, 0x1f4
je 0x406408
mov word [0x4a4b5c], 0x64
push 0x4a24a4
push 0xff
push 0x4a2ea4
push str.error__
push 0x5409be
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov dword [0x4b48fc], 0
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.1178_100_1838_561
push str.WindowPos
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4b4900
push 0x4b48fc
push 0x4b48f8
push 0x4b48f4
push str._d__d__d__d
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x18
mov edi, dword [0x4b48fc]
sub edi, dword [0x4b48f4]
mov dword [ebp - 0x108], edi
mov edi, dword [0x4b4900]
sub edi, dword [0x4b48f8]
mov dword [ebp - 0x10c], edi
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
push 0x4b48f8
push 0x4b48f4
call fcn.00404c0b
add esp, 0x10
mov edi, dword [0x4b48f4]
add edi, dword [ebp - 0x108]
mov dword [0x4b48fc], edi
mov edi, dword [0x4b48f8]
add edi, dword [ebp - 0x10c]
mov dword [0x4b4900], edi
push 0x4a24a4
push 0xff
push 0x4a2d84
push str.Consolas
push 0x5409b0
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x540756
push 0x5409b5
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a4be8
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5408e8
push str.Zoom
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4a2e84
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.E6E6E6
push str.ColorBackground
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4aea08], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.FFFFA0
push 0x5409a4
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4ae8f8], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.C0FFC0
push 0x540995
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4a4bfc], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.FFC0C0
push 0x54098a
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4a30d8], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.C86400_1
push 0x54097d
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4aec3c], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.969696_2
push 0x540970
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4b47cc], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.0A730A
push 0x540966
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4aece8], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.FF3C3C
push 0x54095a
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4a40ac], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.0096FF_1
push 0x540944
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4aecec], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.0000C8
push 0x54094e
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4ae668], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.009600_1
push 0x54093b
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4aece0], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.FF1414_1
push 0x54092f
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4a1cb8], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.FF32FF_1
push 0x540924
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edi, [ebp - 0x100]
push edi
call fcn.00404cb2
add esp, 4
mov dword [0x4a24a0], eax
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.modulescommandTooltips.txt
push 0x540918
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 8
push 0x5406c5
lea edi, [ebp - 0x100]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
jne 0x4068d4
push 0x4a2fa4
push 0x4ae7f4
call fcn.00491c91
add esp, 8
lea edi, [ebp - 0x100]
push edi
push 0x4ae7f4
call sub.CRTDLL.DLL_strcat
add esp, 8
jmp 0x4068ed
push 0x4a2fa4
lea edi, [ebp - 0x100]
push edi
push 0x4ae7f4
call fcn.00401c00
add esp, 0xc
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push str.modulescalculationTooltips.txt
push 0x540908
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 8
push 0x5406c5
lea edi, [ebp - 0x100]
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
cmp eax, 0
jne 0x406955
push 0x4a2fa4
push 0x4aeb24
call fcn.00491c91
add esp, 8
lea edi, [ebp - 0x100]
push edi
push 0x4aeb24
call sub.CRTDLL.DLL_strcat
add esp, 8
jmp 0x40696e
push 0x4a2fa4
lea edi, [ebp - 0x100]
push edi
push 0x4aeb24
call fcn.00401c00
add esp, 0xc
mov dword [ebp - 0x104], 0
push dword [ebp - 0x104]
push 0x5408fd
push str._s_d
lea edi, [ebp - 0x100]
push edi
call fcn.00491c0d
add esp, 0x10
push 0x4a24a4
push 0xff
lea edi, [ebp - 0x100]
push edi
push 0x5406a2
lea edi, [ebp - 0x100]
push edi
push 0x5409d7
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov eax, 0x55
mul dword [ebp - 0x104]
mov dword [ebp - 0x114], eax
mov edi, dword [ebp - 0x114]
lea esi, [edi + 0x510960]
push esi
lea edi, [edi + 0x5109b1]
push edi
push 0x5408f7
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0x10
inc dword [ebp - 0x104]
cmp dword [ebp - 0x104], 4
jl 0x406978
call fcn.0047f974
mov edi, dword [0x4aec64]
cmp edi, 0
je 0x406a32
mov edi, dword [0x4aec64]
sub edi, 1
shl edi, 7
cmp byte [edi + 0x4b42b4], 0
jne 0x406a37
call fcn.00403cac
call fcn.00403645
push 0x4a2fa4
lea edi, [ebp - 0x100]
push edi
call fcn.00491c91
add esp, 8
push str.EAconvert.ini
lea edi, [ebp - 0x100]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
lea edi, [ebp - 0x100]
push edi
push pe_nt_image_headers32
lea edi, [ebp - 0x100]
push edi
push 0x540684
push str.Format
push str.Image
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x4aed84
push 0x540c2c
lea edi, [ebp - 0x100]
push edi
call fcn.00491acc
add esp, 0xc
cmp dword [0x4aed84], 0x20
jne 0x406ab7
mov dword [0x4aed84], 0x10
pop edi
pop esi
pop ebx
leave
ret