Function at 0x140001080
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, r9d
mov r13d, edx
mov r12, r8
mov r14, rcx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], edi
xor edx, edx
xor ecx, ecx
mov ebx, 0x1000
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x38], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, r13
mulsd xmm0, qword [0x140006ba0]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
cvttsd2si rbp, xmm0
lea eax, [rdi + 1]
test ebp, ebp
jne 0x140001104
cmp dword [rsp + 0xe0], edi
cmovne ebp, eax
lea r15, [r14 - 9]
test r15, r15
jne 0x140001151
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rax, [r15 + 4]
mov dword [rax], ebx
mov rcx, qword [0x140008640]
mov edx, 0xffffffff
mov byte [r14 - 1], dil
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001171
cmp eax, 0x80
je 0x14000128d
xor eax, eax
jmp 0x1400012b0
lea rax, [r15 + 4]
mov dword [r15], esi
test rax, rax
jne 0x140001123
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x140001125
mov esi, edi
test ebp, ebp
je 0x140001291
lea eax, [rbp - 1]
mov dword [rsp + 0x30], eax
cmp esi, eax
jne 0x1400011ca
mov eax, 0xfff001
mov ebx, r13d
mul r13d
shr edx, 4
imul eax, edx, 0x1001
sub ebx, eax
lea rax, [r14 - 5]
test rax, rax
jne 0x1400011b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1400011bb
mov dword [rax], ebx
cmp dword [rsp + 0xe0], 0
je 0x1400011ca
mov byte [r14 - 1], 1
mov rcx, qword [0x140008650]
lea rax, [rsp + 0x38]
lea r8d, [rbx + 9]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x140001231
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140001248
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140008650]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test eax, eax
je 0x140001248
mov eax, dword [rsp + 0x58]
inc esi
add dword [r12], eax
cmp esi, ebp
jae 0x140001291
mov eax, dword [rsp + 0x30]
jmp 0x140001182
cmp dword [0x140008648], 0
je 0x140001270
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, ebx
lea rcx, str.____hChannel_thread__08X__WriteChannel:__ld_n
mov edx, eax
call fcn.140001010
mov rcx, qword [0x140008640]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x14000128d
lea rcx, str.Release_failed1_n
call fcn.140001010
xor eax, eax
jmp 0x1400012b0
mov rcx, qword [0x140008640]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x1400012ae
lea rcx, str.Release_failed2_n
call fcn.140001010
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003850
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret