Function at 0x18000ebb0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x2c8
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r8, qword [0x180043fa8]
cmp dword [r8 + 0x18ca2f8], 1
je 0x18000f165
cmp dword [r8 + 0x4774778], 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 0x18000ed35
mov ecx, 0xe00038
call fcn.180013150
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0xe00038
mov rcx, rax
mov rbx, rax
call fcn.180014c80
mov r8, qword [0x180043fa8]
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 + 0xa0]
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 + 0x4774770], rbx
add r8, 0x4774758
call fcn.180002970
mov rcx, qword [0x180043fa8]
lea rdx, [rsp + 0xa0]
mov r8d, dword [rcx + 0x4774768]
mov rcx, qword [rcx + 0x4774770]
call fcn.180012eb0
mov rcx, qword [0x180043fa8]
cmp eax, 1
jne 0x18000ecc8
mov dword [rcx + 0x18ca2f8], eax
lea rdx, str._s_opened
jmp 0x18000ecf5
mov r8, qword [rcx + 0x4774770]
test r8, r8
je 0x18000ece8
mov rax, qword [r8]
mov edx, 1
mov rcx, r8
call qword [rax]
mov rcx, qword [0x180043fa8]
mov dword [rcx + 0x18ca2f8], edi
lea rdx, str.Can_not_open__s
or dword [rcx + 0x11b0b44], 0x20
lea r8, [rcx + 0x4774758]
add rcx, 0x11b0a44
call fcn.180002970
mov r11, qword [0x180043fa8]
or dword [r11 + 0x11b0b44], 0x10
cmp dword [r11 + 0x18ca2f8], 1
jne 0x18000f0f6
mov ebp, dword [rsp + 0x38]
jmp 0x18000efb4
add r8, 0x4774758
lea rdx, str.._s
lea rcx, [rsp + 0x1a0]
call fcn.180002970
mov r9d, 0xa
lea rdx, str.V_0_0_0_c_c
lea rcx, [rsp + 0x60]
lea r8d, [r9 + 3]
call fcn.180002970
lea rax, [rsp + 0x60]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x18000ed77
lea r14, [0x18003cc18]
xor edi, edi
lea r12, [0x18003cc38]
lea r15, vtable.CLocalRs232.0
nop word [rax + rax]
mov ecx, 0xe00038
call fcn.180013150
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0xe00038
mov rcx, rax
mov rbx, rax
call fcn.180014c80
mov rax, qword [0x180043fa8]
lea rdx, [rsp + 0x1a0]
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 + 0x4774770], rbx
call fcn.180012eb0
cmp eax, 1
jne 0x18000f0d2
mov rcx, qword [0x180043fa8]
lea rdx, str.comm_speed_check__d_bps
mov r8d, ebp
mov dword [rcx + 0x18ca2f8], eax
add rcx, 0x11b0a44
call fcn.180002970
mov rax, qword [0x180043fa8]
or dword [rax + 0x11b0b44], 0x10
cmp dword [rax + 0x18ca2f8], 1
jne 0x18000ee87
mov rbx, qword [rax + 0x4774770]
cmp dword [rbx + 8], 1
je 0x18000ee87
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x38]
mov r8d, esi
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov r8d, 0x1f4
call fcn.18000ea90
mov ebx, eax
test eax, eax
jg 0x18000eea8
mov r11, qword [0x180043fa8]
mov dword [r11 + 0x18ca2f8], edi
jmp 0x18000ef0e
mov r9, qword [0x180043fa8]
mov edx, edi
mov rcx, qword [r9 + 0x4774770]
mov r8d, dword [rcx + 0xe00018]
nop
mov eax, dword [rcx + 0xe0001c]
cmp r8d, eax
je 0x18000eee6
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x18000eee0
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, ebx
jl 0x18000eec0
lea rcx, [r9 + 0x11b12e0]
mov r8d, 4
lea rdx, str.B290
call fcn.18001b250
test eax, eax
je 0x18000ef97
mov r11, qword [0x180043fa8]
mov rbx, qword [r11 + 0x4774770]
mov rax, qword [rbx + 0xe00028]
test rax, rax
je 0x18000ef68
cmp rax, 0xffffffffffffffff
je 0x18000ef68
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 r11, qword [0x180043fa8]
mov qword [rbx + 0xe00028], rdi
mov rcx, qword [r11 + 0x4774770]
test rcx, rcx
je 0x18000ef85
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r11, qword [0x180043fa8]
add r14, 4
cmp r14, r12
jl 0x18000eda0
jmp 0x18000f0f6
mov rdx, qword [0x180043fa8]
mov r8d, ebx
add rdx, 0x11b12e0
call fcn.18000c310
mov r11, qword [0x180043fa8]
mov dword [r11 + 0x18ca2f8], 1
mov dword [r11 + 0x4774768], ebp
or dword [r11 + 0x11b0b44], 0x20
cmp dword [r11 + 0x18ca36c], 1
jne 0x18000f050
mov ebx, dword [r11 + 0x4774698]
call fcn.18000b610
call fcn.18000b800
call fcn.18000bde0
mov r11, qword [0x180043fa8]
or dword [r11 + 0x11b0b44], 0x200
call fcn.18000c3c0
cmp ebx, dword [r11 + 0x4774698]
je 0x18000f02c
movabs rax, 0x4053033333333333
mov dword [r11 + 0x14], 0x384
mov qword [r11 + 0x18ca330], rax
mov edi, 1
cmp dword [r11 + 0x18ca3cc], 0
jne 0x18000f043
mov dword [r11 + 0x18ca664], 1
jmp 0x18000f048
cmp edi, 1
jne 0x18000f050
or dword [r11 + 0x11b0b44], 8
cmp dword [r11 + 0x18ca3cc], 1
lea rcx, [rsp + 0x40]
jne 0x18000f06d
lea rdx, str.USB_CDC_12M
call fcn.180002970
jmp 0x18000f080
mov r8d, dword [r11 + 0x4774768]
lea rdx, str.RS485_UART__d
call fcn.180002970
mov rcx, qword [0x180043fa8]
lea r9, [rsp + 0x40]
mov eax, 0x12ad4
mov edx, 0x13498
cmp dword [rcx + 0x4774698], 1
lea r8, [rcx + 0x4774758]
cmovne eax, edx
add rcx, 0x11b0a44
lea rdx, str._s_opened___sbps___.1lfGHz
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x18003cd78]
movsd qword [rsp + 0x20], xmm0
call fcn.180002970
jmp 0x18000f11f
mov r11, qword [0x180043fa8]
mov rcx, qword [r11 + 0x4774770]
test rcx, rcx
je 0x18000f0f6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r11, qword [0x180043fa8]
mov dword [r11 + 0x18ca2f8], edi
lea r8, [r11 + 0x4774758]
or dword [r11 + 0x11b0b44], 0x20
lea rcx, [r11 + 0x11b0a44]
lea rdx, str.Can_not_open__s
call fcn.180002970
mov rax, qword [0x180043fa8]
mov r14, qword [rsp + 0x2b8]
mov r12, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2e8]
or dword [rax + 0x11b0b44], 0x10
mov rsi, qword [rsp + 0x2e0]
mov rbp, qword [rsp + 0x2d8]
mov rbx, qword [rsp + 0x2d0]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180013130
add rsp, 0x2c8
ret