Function at 0x14008edc0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rbp
mov esi, 1
mov rbp, rdx
mov qword [rsp + 0x50], r14
mov r14d, r9d
mov qword [rsp + 0x48], r15
mov r15, r8
mov rdi, rcx
mov dword [rsp + 0x30], 0
cmp byte [rcx + 0x38], sil
jne 0x14008ef7f
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x14008ef7f
cmp byte [rbx], 0
je 0x14008ef7f
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14008ee37
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x18]
test rbp, rbp
je 0x14008ef53
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14008eeed
cmp byte [rbx], 0
je 0x14008eee6
lea rax, [rbx + 0x20]
mov r8d, 0x1a
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14008ee83
cmp dword [rsp + 0x30], 0x1a
jne 0x14008ee83
xor esi, esi
jmp 0x14008eef2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x14008eed8
mov edx, eax
lea rcx, str._Aws_Pipe__Send___failed__GLE0x_I64X_n
call fcn.140095ab0
cmp byte [rbx], 0
je 0x14008eeae
mov byte [rbx], 0
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14008eebe
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14008eef2
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
jmp 0x14008eef2
lea rcx, str._Aws_Pipe__Send___failed__ERROR_IO_PENDING_n
call fcn.140095ab0
jmp 0x14008eef2
mov esi, 0x4ca
jmp 0x14008eef2
mov esi, 0x4cd
test esi, esi
jne 0x14008ef58
cmp byte [rdi + 0x39], sil
je 0x14008ef10
mov r8d, dword [rsp + 0x30]
lea edx, [rsi + 0x1a]
lea rcx, str._Aws_PipeConnection__Send___Header:__d____d_n
call fcn.140095ab0
test r15, r15
je 0x14008ef70
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rdx, r15
call fcn.14008f6f0
mov esi, eax
test eax, eax
jne 0x14008ef4a
cmp byte [rdi + 0x39], al
je 0x14008ef70
mov r8d, dword [rsp + 0x30]
lea rcx, str._Aws_PipeConnection__Send___payload:__d____d
mov edx, r14d
call fcn.140095ab0
jmp 0x14008ef70
lea rcx, str._Aws_PipeConnection__Send___payload_fail__func_type:__d__subfunc_type:__d__payload_length_:__d_n
jmp 0x14008ef5f
mov esi, 0x57
lea rcx, str._Aws_PipeConnection__Send___header_fail__func_type:__d__subfunc_type:__d__payload_length_:__d_n
movzx r8d, byte [rbp + 5]
mov r9d, r14d
movzx edx, byte [rbp + 4]
call fcn.140095ab0
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14008ef7f
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
cmp byte [rdi + 0x38], 1
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
jne 0x14008efef
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14008efef
cmp byte [rbx], 0
jne 0x14008efef
mov rcx, qword [rdi + 0x30]
mov byte [rdi + 0x38], 0
cmp rcx, 0xffffffffffffffff
je 0x14008efbf
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14008efef
cmp byte [rbx], 0
je 0x14008efc7
mov byte [rbx], 0
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14008efd7
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14008efef
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
test esi, esi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret