Function at 0x499763
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 [0x53b73c]
mov dword [ebp - 8], eax
push 0
push 0x1f4
push 0x300
mov ecx, dword [ebp - 0x28]
call fcn.004048f0
cmp dword [ebp - 8], 0
je 0x49979f
push 0
mov ecx, dword [ebp - 8]
call fcn.0041a048
mov dword [ebp - 0xc], 1
jmp 0x4997b1
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x11
jge 0x499b13
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x53c264], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x53c291], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x53c260], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x53c268], 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x53c274], 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x53c278], 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
mov dword [ecx + 0x53c270], 0
push 0x15
push 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x53c27c
push edx
call fcn.004b9030
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 + 0x1838]
push edx
call fcn.004b9030
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + eax*4 + 0x564a8], 0
je 0x499885
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + edx*4 + 0x564a8]
mov byte [ecx], 0xfe
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x53c9e8]
cmp eax, 1
jne 0x499b0e
cmp dword [0x53c1e0], 0
jne 0x4998ab
cmp dword [0x53c1e4], 0
je 0x4998db
push 0x15
mov ecx, dword [ebp - 0xc]
sub ecx, 1
imul ecx, ecx, 0x15
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx + 0x564ec]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x53c27c
push ecx
call fcn.004b96d0
add esp, 0xc
jmp 0x499aba
push 0x15
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004b9030
add esp, 0xc
cmp dword [0x53bfa0], 0
je 0x499915
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x536d64
push 0x536d6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x24]
test edx, edx
jne 0x49993e
mov eax, dword [ebp - 0x28]
add eax, 0x8ec
push eax
push 0x15
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0x536d74
push 0x536d7c
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, 0x53c27c
push eax
call fcn.004b96d0
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x1238], 0
jne 0x499a42
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x123c], 0
jne 0x4999d6
push 0x15
mov eax, dword [ebp - 0x28]
add eax, 0x1255
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004a57df
add esp, 0xc
test eax, eax
je 0x4999d6
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
mov dword [edx + 0x53c264], 2
push 0
push 0x32
push 0xff
push 0x536d88
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.0047107d
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x1284], 1
jmp 0x4997a8
mov edx, dword [ebp - 0x28]
add edx, 0x126a
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [0x53bf00]
push ecx
call fcn.004a1be0
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, 0x8ec
push edx
lea eax, [ebp - 0x24]
push eax
push 0x536dac
push str.IDENTIFY
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x53bfa0], 0
je 0x499a38
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.0042775f
jmp 0x499aa4
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1238], 3
jne 0x499aa4
push 0x15
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x53c27c
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1288]
push ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x35
add edx, 0x53c27c
push edx
call fcn.004a1d32
add esp, 0xc
push 0x15
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
add eax, 0x53c27c
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004b96d0
add esp, 0xc
push 0
push 3
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xd4
call fcn.004a02a0
cmp dword [ebp - 4], 0
jne 0x499ad7
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x35
mov dword [eax + 0x53c278], 1
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x35
add ecx, 0x53c260
push ecx
push 0x4900e1
call fcn.004ddeb5
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 0x4997a8
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x1284], 0
je 0x499b33
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.004db06e
mov esp, ebp
pop ebp
ret