Function at 0x140011285
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400118d0
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x1400240a2]
call fcn.140011393
lea rax, str..COM15
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x1e4], 0
lea rcx, str._n_n_
call fcn.14001119f
lea rcx, str._n_____Serial_Port__Reception__Win32_API_____
call fcn.14001119f
lea rcx, str._n__n
call fcn.14001119f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140011991
mov rdx, qword [rbp + 0x28]
lea rcx, str._n____Error____Port__s_cant_be_opened_n
call fcn.14001119f
jmp 0x1400119a1
mov rdx, qword [rbp + 0x28]
lea rcx, str._n____Port__s_Opened_n
call fcn.14001119f
lea rax, [rbp + 0x208]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rbp + 0x208], 0x1c
lea rdx, [rbp + 0x208]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x1400119e4
lea rcx, str._n____Error__in_GetCommState__
call fcn.14001119f
mov dword [rbp + 0x20c], 0x1c200
mov byte [rbp + 0x21a], 8
mov byte [rbp + 0x21c], 0
mov byte [rbp + 0x21b], 0
lea rdx, [rbp + 0x208]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetCommState]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140011a2b
lea rcx, str._n____Error__in_Setting_DCB_Structure
call fcn.14001119f
jmp 0x140011a88
lea rcx, str._n_n____Setting_DCB_Structure_Successfull_n
call fcn.14001119f
mov edx, dword [rbp + 0x20c]
lea rcx, str._n_______Baudrate___d
call fcn.14001119f
movzx eax, byte [rbp + 0x21a]
mov edx, eax
lea rcx, str._n_______ByteSize___d
call fcn.14001119f
movzx eax, byte [rbp + 0x21c]
mov edx, eax
lea rcx, str._n_______StopBits___d
call fcn.14001119f
movzx eax, byte [rbp + 0x21b]
mov edx, eax
lea rcx, str._n_______Parity_____d
call fcn.14001119f
lea rax, [rbp + 0x248]
mov rdi, rax
xor eax, eax
mov ecx, 0x14
rep stosb byte [rdi], al
mov dword [rbp + 0x248], 0x32
mov dword [rbp + 0x250], 0x32
mov dword [rbp + 0x24c], 0xa
mov dword [rbp + 0x258], 0x32
mov dword [rbp + 0x254], 0xa
lea rdx, [rbp + 0x248]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x140011af0
lea rcx, str._n_n____Error__in_Setting_Time_Outs
call fcn.14001119f
jmp 0x140011afc
lea rcx, str._n_n____Setting_Serial_Port_Timeouts_Successfull
call fcn.14001119f
mov edx, 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140011b22
lea rcx, str._n_n____Error__in_Setting_CommMask
call fcn.14001119f
jmp 0x140011b2e
lea rcx, str._n_n____Setting_CommMask_successfull
call fcn.14001119f
lea rcx, str._n_n____Waiting_for_Data_Reception
call fcn.14001119f
xor r8d, r8d
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitCommEvent]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140011b65
lea rcx, str._n____Error__in_Setting_WaitCommEvent__
call fcn.14001119f
jmp 0x140011c26
lea rcx, str._n_n____Characters_Received
call fcn.14001119f
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x1c4]
mov r8d, 1
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x44], eax
movsxd rax, dword [rbp + 0x1e4]
movzx ecx, byte [rbp + 0x84]
mov byte [rbp + rax + 0xb0], cl
mov eax, dword [rbp + 0x1e4]
inc eax
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1c4], 0
ja 0x140011b71
lea rcx, str._n_n
call fcn.14001119f
mov dword [rbp + 0x274], 0
mov dword [rbp + 0x274], 0
jmp 0x140011bf7
mov eax, dword [rbp + 0x274]
inc eax
mov dword [rbp + 0x274], eax
mov eax, dword [rbp + 0x1e4]
dec eax
cmp dword [rbp + 0x274], eax
jge 0x140011c26
movsxd rax, dword [rbp + 0x274]
movsx eax, byte [rbp + rax + 0xb0]
mov edx, eax
lea rcx, [0x14001b1f0]
call fcn.14001119f
jmp 0x140011be9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._n__n
call fcn.14001119f
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ae10]
call fcn.14001132f
mov eax, edi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret