Function at 0x48fa58
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 [0x52d4bc]
mov dword [ebp - 8], eax
push 0
push 0x1f4
push 0x300
mov ecx, dword [ebp - 0x28]
call fcn.004048e0
cmp dword [ebp - 8], 0
je 0x48fa94
push 0
mov ecx, dword [ebp - 8]
call fcn.00418bfe
mov dword [ebp - 0xc], 1
jmp 0x48faa6
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x11
jge 0x48fe08
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x52df74], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x52dfa1], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x52df70], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x52df78], 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x52df84], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x52df88], 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x52df80], 0
push 0x15
push 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x52df8c
push edx
call fcn.004adbd0
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 + 0x16d0]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + eax*4 + 0x55dc8], 0
je 0x48fb7a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + edx*4 + 0x55dc8]
mov byte [ecx], 0xfe
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x52e6e0]
cmp eax, 1
jne 0x48fe03
cmp dword [0x52defc], 0
jne 0x48fba0
cmp dword [0x52df00], 0
je 0x48fbd0
push 0x15
mov ecx, dword [ebp - 0xc]
sub ecx, 1
imul ecx, ecx, 0x15
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx + 0x55e0c]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x52df8c
push ecx
call fcn.004ae270
add esp, 0xc
jmp 0x48fdaf
push 0x15
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004adbd0
add esp, 0xc
cmp dword [0x52dcc4], 0
je 0x48fc0a
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x528d58
push 0x528d60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x24]
test edx, edx
jne 0x48fc33
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x528d68
push 0x528d70
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, 0x52df8c
push eax
call fcn.004ae270
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x11e0], 0
jne 0x48fd37
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x11e4], 0
jne 0x48fccb
push 0x15
mov eax, dword [ebp - 0x28]
add eax, 0x11fd
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0049a937
add esp, 0xc
test eax, eax
je 0x48fccb
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x52df74], 2
push 0
push 0x32
push 0xff
push 0x528d7c
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.0046a84c
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x122c], 1
jmp 0x48fa9d
mov edx, dword [ebp - 0x28]
add edx, 0x1212
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x52dc40]
push ecx
call fcn.00496fc2
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, 0x8ec
push edx
lea eax, [ebp - 0x24]
push eax
push 0x528da0
push str.IDENTIFY
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x52dcc4], 0
je 0x48fd2d
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.004252b4
jmp 0x48fd99
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x11e0], 3
jne 0x48fd99
push 0x15
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x52df8c
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1230]
push ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x52df8c
push edx
call fcn.00497114
add esp, 0xc
push 0x15
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
add eax, 0x52df8c
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004ae270
add esp, 0xc
push 0
push 3
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xd4
call fcn.00495760
cmp dword [ebp - 4], 0
jne 0x48fdcc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x52df88], 1
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x52df70
push ecx
push 0x486f06
call fcn.004d2a55
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 0x48fa9d
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x122c], 0
je 0x48fe28
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.004cfc0e
mov esp, ebp
pop ebp
ret