Function at 0x14007e9a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
lea rax, str.CHIDDevice::SendReport
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400baa28]
mov r8d, 0x177
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008f230
nop
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.14007e290
test eax, eax
jne 0x14007ea31
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x5c]
jmp 0x14007ec77
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140055d50
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x14007eabf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_Create_Event:_error__0x_x_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400baa70]
mov r8d, 0x186
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x60]
jmp 0x14007ec77
mov rax, qword [rsp + 0xc0]
add rax, 0x70
mov rcx, rax
call fcn.1400108e0
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0xc0]
add rcx, 0x70
call fcn.140001df0
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov ecx, dword [rsp + 0x54]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x102
jne 0x14007eb9a
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rax, str.WriteFile_Timed_Out_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400baaa8]
mov r8d, 0x190
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x64]
jmp 0x14007ec77
cmp dword [rsp + 0x40], 0
je 0x14007ebbe
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x48]
jmp 0x14007ec77
mov r9d, 1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14007ec3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_WriteFile:_0x_x_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [0x1400baae8]
mov r8d, 0x196
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x68]
call fcn.14008ef50
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x4c]
jmp 0x14007ec77
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 0xde]
cmp dword [rsp + 0x50], eax
jne 0x14007ec59
mov dword [rsp + 0x44], 1
jmp 0x14007ec61
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x68]
call fcn.14008f210
mov eax, dword [rsp + 0x58]
add rsp, 0xb8
ret