Function at 0x49f598
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x5428ac]
mov dword [ebp - 8], eax
push 0
push 0x1f4
push 0x300
mov ecx, dword [ebp - 0x28]
call fcn.00404930
cmp dword [ebp - 8], 0
je 0x49f5d4
push 0
mov ecx, dword [ebp - 8]
call fcn.0041a9b8
mov dword [ebp - 0xc], 1
jmp 0x49f5e6
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x11
jge 0x49f948
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x5433f4], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x543421], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x5433f0], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x5433f8], 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x543404], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x543408], 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x543400], 0
push 0x15
push 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x54340c
push edx
call fcn.004be790
add esp, 0xc
push 0x92
push 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x92
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax + 0x1954]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + eax*4 + 0x565c4], 0
je 0x49f6ba
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + edx*4 + 0x565c4]
mov byte [ecx], 0xfe
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x543b78]
cmp eax, 1
jne 0x49f943
cmp dword [0x543370], 0
jne 0x49f6e0
cmp dword [0x543374], 0
je 0x49f710
push 0x15
mov ecx, dword [ebp - 0xc]
sub ecx, 1
imul ecx, ecx, 0x15
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx + 0x56608]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x54340c
push ecx
call fcn.004bee30
add esp, 0xc
jmp 0x49f8ef
push 0x15
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004be790
add esp, 0xc
cmp dword [0x543130], 0
je 0x49f74a
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x53e008
push 0x53e010
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x24]
test edx, edx
jne 0x49f773
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x53e018
push 0x53e020
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x15
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
add eax, 0x54340c
push eax
call fcn.004bee30
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x1354], 0
jne 0x49f877
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x1358], 0
jne 0x49f80b
push 0x15
mov eax, dword [ebp - 0x28]
add eax, 0x1371
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004aaf3f
add esp, 0xc
test eax, eax
je 0x49f80b
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x5433f4], 2
push 0
push 0x32
push 0xff
push 0x53e02c
push 1
push str.Exceed_End_serial_number_Fail
push 0xa
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004743ac
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x13a0], 1
jmp 0x49f5dd
mov edx, dword [ebp - 0x28]
add edx, 0x1386
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x543080]
push ecx
call fcn.004a729e
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, 0x8ec
push edx
lea eax, [ebp - 0x24]
push eax
push 0x53e050
push str.IDENTIFY
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x543130], 0
je 0x49f86d
mov ecx, dword [ebp - 0x28]
add ecx, 0x8ec
push ecx
lea edx, [ebp - 0x24]
push edx
push str.BEGINSN
push str.TEST
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 8]
call fcn.00428b22
jmp 0x49f8d9
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1354], 3
jne 0x49f8d9
push 0x15
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x54340c
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x13a4]
push ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x54340c
push edx
call fcn.004a73f0
add esp, 0xc
push 0x15
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
add eax, 0x54340c
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004bee30
add esp, 0xc
push 0
push 3
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xd4
call fcn.004a5900
cmp dword [ebp - 4], 0
jne 0x49f90c
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x543408], 1
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x5433f0
push ecx
push 0x495f89
call fcn.004e3615
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + edx*4 + 0xfb8], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49f5dd
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x13a0], 0
je 0x49f968
push 0
push str.Please_check_the_serial_number_setting
push str.Caution__Some_ports_serial_number_already_exceed_end_serial_number_
mov ecx, dword [ebp - 0x28]
call fcn.004e07ce
mov esp, ebp
pop ebp
ret