Function at 0x14000b250
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x2a8
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8, qword [0x14003ffb8]
cmp dword [r8 + 0x24cdb10], 1
je 0x14000b7a4
cmp dword [r8 + 0x2637f50], 1
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
jne 0x14000b3d3
mov ecx, 0xe00038
call fcn.140010ce0
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0xe00038
mov rcx, rax
mov rbx, rax
call fcn.1400126f0
mov r8, qword [0x14003ffb8]
lea r15, vtable.CLocalRs232.0
xor edi, edi
mov qword [rbx], r15
mov qword [rbx + 0xe00028], rdi
lea rdx, str.._s
mov qword [rbx + 0xe00030], rdi
lea rcx, [rsp + 0x80]
mov qword [rbx + 0xc], rdi
mov dword [rbx + 8], 1
mov qword [rbx + 0xe0001c], rdi
mov dword [rbx + 0x14], edi
mov dword [rbx + 0xe00018], edi
mov qword [r8 + 0x2637f48], rbx
add r8, 0x2637f30
call fcn.1400010b0
mov rcx, qword [0x14003ffb8]
lea rdx, [rsp + 0x80]
mov r8d, dword [rcx + 0x2637f40]
mov rcx, qword [rcx + 0x2637f48]
call fcn.14000c960
mov rcx, qword [0x14003ffb8]
cmp eax, 1
jne 0x14000b368
mov dword [rcx + 0x24cdb10], eax
lea rdx, str._s_opened
jmp 0x14000b395
mov r8, qword [rcx + 0x2637f48]
test r8, r8
je 0x14000b388
mov rax, qword [r8]
mov edx, 1
mov rcx, r8
call qword [rax]
mov rcx, qword [0x14003ffb8]
mov dword [rcx + 0x24cdb10], edi
lea rdx, str.Can_not_open__s
or dword [rcx + 0x1db2344], 0x20
lea r8, [rcx + 0x2637f30]
add rcx, 0x1db2244
call fcn.1400010b0
mov rax, qword [0x14003ffb8]
or dword [rax + 0x1db2344], 0x10
cmp dword [rax + 0x24cdb10], 1
jne 0x14000b737
mov ebp, dword [rsp + 0x38]
jmp 0x14000b647
add r8, 0x2637f30
lea rdx, str.._s
lea rcx, [rsp + 0x180]
call fcn.1400010b0
mov r9d, 0xa
lea rdx, str.V_0_0_0_c_c
lea rcx, [rsp + 0x40]
lea r8d, [r9 + 3]
call fcn.1400010b0
lea rax, [rsp + 0x40]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x14000b415
lea r14, [0x140038c28]
xor edi, edi
lea r12, [0x140038c48]
lea r15, vtable.CLocalRs232.0
mov ecx, 0xe00038
call fcn.140010ce0
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0xe00038
mov rcx, rax
mov rbx, rax
call fcn.1400126f0
mov rax, qword [0x14003ffb8]
lea rdx, [rsp + 0x180]
mov ebp, dword [r14]
mov rcx, rbx
mov qword [rbx], r15
mov r8d, ebp
mov qword [rbx + 0xe00028], rdi
mov qword [rbx + 0xe00030], rdi
mov qword [rbx + 0xc], rdi
mov dword [rbx + 8], 1
mov qword [rbx + 0xe0001c], rdi
mov dword [rbx + 0x14], edi
mov dword [rbx + 0xe00018], edi
mov qword [rax + 0x2637f48], rbx
call fcn.14000c960
cmp eax, 1
jne 0x14000b713
mov rcx, qword [0x14003ffb8]
lea rdx, str.comm_speed_check__d_bps
mov r8d, ebp
mov dword [rcx + 0x24cdb10], eax
add rcx, 0x1db2244
call fcn.1400010b0
mov rax, qword [0x14003ffb8]
or dword [rax + 0x1db2344], 0x10
cmp dword [rax + 0x24cdb10], 1
jne 0x14000b51c
mov rbx, qword [rax + 0x2637f48]
cmp dword [rbx + 8], 1
je 0x14000b51c
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x38]
mov r8d, esi
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov r8d, 0x1f4
call fcn.14000b130
mov ebx, eax
test eax, eax
jg 0x14000b53c
mov rax, qword [0x14003ffb8]
mov dword [rax + 0x24cdb10], edi
jmp 0x14000b5a1
mov r9, qword [0x14003ffb8]
mov edx, edi
mov rcx, qword [r9 + 0x2637f48]
mov r8d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r8d, eax
je 0x14000b579
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x14000b573
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, ebx
jl 0x14000b553
lea rcx, [r9 + 0x1db2ae0]
mov r8d, 4
lea rdx, str.B290
call fcn.1400185b0
test eax, eax
je 0x14000b62a
mov rax, qword [0x14003ffb8]
mov rbx, qword [rax + 0x2637f48]
mov rcx, qword [rbx + 0xe00028]
test rcx, rcx
je 0x14000b5fb
cmp rcx, 0xffffffffffffffff
je 0x14000b5fb
mov dword [rbx + 0x10], 1
mov edx, 0xffffffff
mov rcx, qword [rbx + 0xe00030]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0xe00030]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xe00028]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14003ffb8]
mov qword [rbx + 0xe00028], rdi
mov rcx, qword [rax + 0x2637f48]
test rcx, rcx
je 0x14000b618
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [0x14003ffb8]
add r14, 4
cmp r14, r12
jl 0x14000b435
jmp 0x14000b737
mov rdx, qword [0x14003ffb8]
mov r8d, ebx
add rdx, 0x1db2ae0
call fcn.140009dc0
mov rax, qword [0x14003ffb8]
mov dword [rax + 0x24cdb10], 1
mov dword [rax + 0x2637f40], ebp
or dword [rax + 0x1db2344], 0x20
nop
test byte [rax + 0x1db2344], 0x10
je 0x14000b691
test dword [rax + 0x1db2348], 0x100000
jne 0x14000b691
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14003ffb8]
inc edi
cmp edi, 0xbb8
jl 0x14000b660
mov r9d, dword [rax + 0x2637f40]
lea r8, [rax + 0x2637f30]
lea rcx, [rax + 0x1db2244]
lea rdx, str._s_opened___dbps
call fcn.1400010b0
mov rax, qword [0x14003ffb8]
or dword [rax + 0x1db2344], 0x10
cmp dword [rax + 0x24cdb84], 1
jne 0x14000b76c
mov ebx, dword [rax + 0x24cdbdc]
call fcn.140008f20
call fcn.140009110
call fcn.1400096c0
mov rcx, qword [0x14003ffb8]
cmp dword [rcx + 0x24cde98], 0x134d875
jge 0x14000b76c
cmp ebx, dword [rcx + 0x24cdbdc]
je 0x14000b76c
or dword [rcx + 0x1db2348], 0x20000
or dword [rcx + 0x1db2348], 0x80000
jmp 0x14000b76c
mov rax, qword [0x14003ffb8]
mov rcx, qword [rax + 0x2637f48]
test rcx, rcx
je 0x14000b737
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [0x14003ffb8]
mov dword [rax + 0x24cdb10], edi
lea r8, [rax + 0x2637f30]
or dword [rax + 0x1db2344], 0x20
lea rcx, [rax + 0x1db2244]
lea rdx, str.Can_not_open__s
call fcn.1400010b0
mov rax, qword [0x14003ffb8]
or dword [rax + 0x1db2344], 0x10
mov r14, qword [rsp + 0x298]
mov r12, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2c8]
mov rsi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov r15, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140010cc0
add rsp, 0x2a8
ret