Function at 0x4090b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x464a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x480520]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
lea ecx, [esi + 0xf0]
push eax
mov byte [esp + 0x30], 1
call fcn.0040af90
push str.AccessPort.ini
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x38], 2
call fcn.0043d232
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 4
call fcn.0043cf9d
mov edx, dword [0x480520]
mov dword [esp + 0x1c], edx
push str.SerialPort
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.0043d126
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x280c]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ecx
push edx
push str.Setting
call edi
push str.BaudRate
lea ecx, [esp + 0x14]
mov dword [esi + 0x280c], eax
call fcn.0043d126
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2644]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push str.Setting
call edi
push str.ParityBit
lea ecx, [esp + 0x14]
mov dword [esi + 0x2644], eax
call fcn.0043d126
movsx eax, byte [esi + 0x2654]
push eax
lea ecx, [esp + 0x20]
push 0x47f830
push ecx
call fcn.00438835
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push 0x104
push 0x104
call fcn.0043d3cd
push eax
push ebp
push ebx
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0043d41c
mov eax, dword [esp + 0x18]
push str.DataBit
lea ecx, [esp + 0x14]
mov al, byte [eax]
mov byte [esi + 0x2654], al
call fcn.0043d126
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x2648]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push str.Setting
call edi
push str.StopBit
lea ecx, [esp + 0x14]
mov dword [esi + 0x2648], eax
call fcn.0043d126
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x264c]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push str.Setting
call edi
push str.BufferSize
lea ecx, [esp + 0x14]
mov dword [esi + 0x264c], eax
call fcn.0043d126
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x2650]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push str.Setting
call edi
push str.SendCycle
lea ecx, [esp + 0x14]
mov dword [esi + 0x2650], eax
call fcn.0043d126
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x160]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push str.Setting
call edi
push str.SysParameter
lea ecx, [esp + 0x14]
mov dword [esi + 0x160], eax
call fcn.0043d126
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10c]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push str.Setting
call edi
mov edx, eax
mov ecx, eax
shr edx, 4
and ecx, 1
and edx, 1
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x158], edx
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0xc
and ecx, 1
and edx, 1
mov dword [esi + 0x124], ecx
mov dword [esi + 0x10c], eax
mov dword [esi + 0x128], edx
mov ecx, eax
shr ecx, 0x10
and ecx, 1
shr eax, 0x14
mov dword [esi + 0x12c], ecx
and eax, 1
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.00409380
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 4
call fcn.0043cf9d
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0043cf9d
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.0043cf9d
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043cf9d
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret