Function at 0x14010f960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r10, qword [0x140382018]
xor r13d, r13d
mov rbp, rdx
mov r12, r8
imul rbp, r8
mov esi, r9d
mov r15, rdx
mov r8, rbp
mov r14, rcx
mov ebx, r13d
cmp r9d, 1
jne 0x14010f9cd
mov rax, qword [0x140381f88]
mov qword [0x140382008], rax
mov eax, dword [0x140381fd4]
mov dword [0x140381fd0], eax
mov qword [0x140382038], r13
mov qword [0x140382010], r10
mov rcx, qword [0x140382028]
test rcx, rcx
je 0x14010f9ef
sub rcx, r10
cmp rbp, rcx
jbe 0x14010f9ef
lea eax, [r9 - 1]
mov r8, r13
cmp eax, 2
cmova r8, rcx
cmp r9d, 2
jne 0x14010fa1f
cmp dword [0x140361e1c], 0xffffffff
jne 0x14010fa11
mov eax, dword [0x140381fd4]
mov dword [0x140361e1c], eax
mov qword [0x140381fd8], r10
inc qword [0x140381fe0]
inc qword [0x140381fe8]
test r8, r8
je 0x14010fa5a
mov r9, qword [0x140381f88]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r10, qword [0x140382018]
mov rdi, rbp
add r10, rax
sub rdi, rax
mov qword [0x140382018], r10
mov rbx, rax
test esi, esi
jne 0x14010fa5d
add qword [0x140382038], rax
jmp 0x14010fa5d
mov rdi, rbp
test rdi, rdi
je 0x14010fcf8
mov eax, dword [0x140382020]
test eax, eax
je 0x14010fcd7
add qword [0x140382030], r10
cmp eax, 1
jne 0x14010faa1
mov rcx, qword [0x140381f88]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14010faa1
lea rdx, str.Could_not_write_split
mov ecx, 0xe
call fcn.1400e1560
cmp dword [0x140382020], 2
jne 0x14010fad8
mov rcx, qword [0x140381f88]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14010fad8
cmp qword [0x140382018], 0x10000
jae 0x14010fad8
lea rdx, str.Not_enough_space_to_write_split
mov ecx, 0xe
call fcn.1400e1560
cmp dword [0x140382020], 1
jne 0x14010faff
mov eax, dword [0x140381fd4]
cmp dword [0x140381fd0], eax
jne 0x14010faff
mov rax, qword [0x140381f80]
mov qword [0x140382000], rax
jmp 0x14010fb32
mov r8, qword [0x140381f80]
mov rdx, qword [0x140381f88]
mov ecx, dword [0x140381fd4]
call fcn.14010fdd0
mov rcx, qword [0x140381f80]
mov qword [0x140381f88], r13
call case.0x1400ca6fe.0
mov qword [0x140381f80], r13
inc dword [0x140381fd4]
cmp dword [0x140382020], 2
mov qword [0x140381fe0], r13
mov qword [0x140382018], r13
jne 0x14010fb9c
cmp dword [0x140382024], r13d
je 0x14010fb75
mov rdx, qword [0x140497720]
mov ecx, 7
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
mov rcx, qword [0x140497720]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
cmp dword [0x140382020], 2
jne 0x14010fb9c
mov ecx, dword [0x140381fd4]
call fcn.14010f380
test eax, eax
jne 0x14010fb9c
lea rdx, str.could_not_write_split
lea ecx, [rax + 9]
call fcn.1400e1560
mov rcx, qword [0x140497718]
call fcn.140110300
mov qword [0x140381f80], rax
test rax, rax
jne 0x14010fbca
lea rdx, str.allocating_temp_filename
lea ecx, [rax + 4]
call fcn.1400e1560
mov rax, qword [0x140381f80]
lea rdx, [0x140214a34]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [0x140381f88], rax
test rax, rax
jne 0x14010fbfb
mov rdx, qword [0x140381f80]
lea ecx, [rax + 0xa]
call fcn.1400e1560
mov rax, qword [0x140381f88]
lea rcx, [rbx + r14]
mov r9, rax
mov r8, rdi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add qword [0x140382018], rax
lea ecx, [rsi - 1]
add rbx, rax
cmp ecx, 2
jbe 0x14010fc28
add qword [0x140382038], rax
cmp rdi, rax
jbe 0x14010fc5f
cmp dword [0x140382020], 2
jne 0x14010fc4e
lea rdx, [0x1402b3878]
lea rcx, str.Not_enough_room_on_disk
call fcn.1400e1960
jmp 0x14010fb75
lea rdx, str.Not_enough_room_on_disk
mov ecx, 0xe
call fcn.1400e1560
lea eax, [rsi - 1]
cmp eax, 2
ja 0x14010fcf8
cmp dword [0x140382020], 1
jne 0x14010fca6
mov rdx, qword [0x140382008]
test rdx, rdx
je 0x14010fca6
mov ecx, dword [0x140381fd0]
cmp ecx, dword [0x140381fd4]
je 0x14010fca6
mov r8, qword [0x140382000]
call fcn.14010fdd0
mov rcx, qword [0x140382000]
call case.0x1400ca6fe.0
mov rax, qword [0x140381f80]
mov qword [0x140382000], rax
mov rax, qword [0x140381f88]
mov qword [0x140382008], rax
mov eax, dword [0x140381fd4]
mov dword [0x140381fd0], eax
mov qword [0x140382010], r13
jmp 0x14010fcf8
mov rcx, qword [0x140381f88]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x14010fcf8
lea rdx, str.write_error_on_zip_file
mov ecx, 0xe
call fcn.1400e1560
cmp dword [0x140381ee8], r13d
je 0x14010fdaf
mov rdx, qword [0x140381ed0]
mov rcx, qword [0x140381ed8]
test rdx, rdx
jle 0x14010fd76
cmp rcx, 0xffffffffffffffff
jne 0x14010fd4e
mov rdx, qword [0x140497720]
mov ecx, 0x20
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
mov rcx, qword [0x140497720]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rdx, qword [0x140381ed0]
mov ecx, 1
mov qword [0x140381ed8], rcx
cmp rbp, 0x3e8
jbe 0x14010fd73
inc rcx
mov rax, rcx
imul rax, r15
imul rax, r12
cmp rdx, rax
cmovle rcx, r13
mov qword [0x140381ed8], rcx
test rdx, rdx
je 0x14010fdaf
test rcx, rcx
jne 0x14010fdaf
mov rdx, qword [0x140497720]
mov ecx, 0x2e
mov qword [0x140381ed8], 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
mov rcx, qword [0x140497720]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov dword [0x140382044], 1
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret