Function at 0x14000c420
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x8a8
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x890], rax
movsxd rdi, ecx
lea rdx, [rsp + 0x40]
mov ecx, edi
mov dword [rsp + 0x40], 0xffffffff
xor ebp, ebp
call fcn.14000cdb0
test eax, eax
je 0x14000c6bb
mov qword [rsp + 0x8c8], rbx
lea rcx, [rsp + 0x680]
xor edx, edx
mov qword [rsp + 0x8d0], rsi
mov r8d, 0x208
call fcn.140043ce0
mov esi, dword [rsp + 0x40]
lea rax, str.GlobalAsusMigrationAgent_NamedPipeMux
test edi, edi
mov dword [rsp + 0x20], esi
lea r9, str.GlobalAsusMigrationNet_NamedPipeMux
mov edx, 0x104
cmove r9, rax
lea r8, str._s_0x_x
lea rcx, [rsp + 0x680]
call fcn.1400032c0
lea r8, [rsp + 0x680]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenMutexW]
test rax, rax
je 0x14000c570
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test edi, edi
mov dword [rsp + 0x20], esi
lea rax, str..pipeAsusMigrationAgent_NamedPipeCommand
mov edx, 0x104
lea r9, str..pipeAsusMigrationNet_NamedPipeCommand
cmove r9, rax
lea r8, str._s_0x_x
lea rcx, [rsp + 0x680]
call fcn.1400032c0
nop
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x680]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c5ea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xe7
jne 0x14000c570
mov edx, 0x7d0
lea rcx, [rsp + 0x680]
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_WaitNamedPipeW]
test eax, eax
jne 0x14000c510
imul rdi, rdi, 0x31c0
mov ebx, ebp
lea rsi, [0x140097450]
cmp dword [rdi + rsi + 0x3180], ebx
jbe 0x14000c5b7
nop dword [rax]
mov eax, ebx
xor edx, edx
imul rcx, rax, 0x630
mov r8d, 0x630
add rcx, rdi
add rcx, rsi
call fcn.140043ce0
inc ebx
cmp ebx, dword [rdi + rsi + 0x3180]
jb 0x14000c590
mov dword [rdi + rsi + 0x3180], ebp
mov eax, ebp
mov rbx, qword [rsp + 0x8c8]
mov rsi, qword [rsp + 0x8d0]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14001f4e0
add rsp, 0x8a8
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.14000cc40
test eax, eax
je 0x14000c6a8
mov qword [rsp + 0x8d8], r14
lea r14, str.PassObjectInQueue_WriteFile
mov qword [rsp + 0x8a0], r15
lea r15, [0x140093ba0]
nop dword [rax]
cmp dword [rsp + 0x50], esi
jne 0x14000c688
lea r9, [rsp + 0x40]
mov dword [rsp + 0x50], ebp
mov r8d, 0x630
mov dword [rsp + 0x40], 0x630
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, qword [0x140093ba0]
cmp rcx, r15
je 0x14000c67d
test byte [rcx + 0x1c], 1
je 0x14000c67d
mov eax, dword [rsp + 0x54]
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call fcn.14001e200
mov ecx, 0xf
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.14000cc40
test eax, eax
jne 0x14000c620
mov r15, qword [rsp + 0x8a0]
mov r14, qword [rsp + 0x8d8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
jmp 0x14000c5c0
mov eax, ebp
jmp 0x14000c5d0