Function at 0x140002b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1038
call fcn.140066c80
sub rsp, rax
xor edi, edi
mov dword [0x1400bb22c], ecx
mov r14d, edi
lea r15, [rsp + 0x1098]
mov rbx, r8
mov ebp, edx
mov esi, ecx
call fcn.140001510
mov r9, rbx
mov qword [rsp + 0x28], r15
mov r13, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
lea rbx, [0x1400bdf20]
mov r8, r13
mov rcx, qword [rax]
mov rdx, rbx
or rcx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov ecx, dword [0x1400bb23c]
test eax, eax
mov r12d, eax
cmovs r12d, r13d
sub ecx, 1
movsxd rdx, ecx
js 0x140002c2a
mov rcx, qword [0x1400bb248]
nop
cmp dword [rcx + rdx*4], esi
je 0x140002c1d
sub rdx, 1
jns 0x140002c10
jmp 0x140002c2a
mov byte [0x1400bb221], 1
mov r14d, 1
mov eax, dword [0x1400bb244]
sub eax, 1
movsxd rcx, eax
js 0x140002c71
mov rax, qword [0x1400bb258]
nop
cmp dword [rax + rcx*4], esi
je 0x140002c4d
sub rcx, 1
jns 0x140002c40
jmp 0x140002c71
movzx ecx, byte [0x1400bb223]
test cl, cl
je 0x140002c71
movzx edx, byte [0x1400bb222]
test dl, dl
je 0x140002c67
cmp dl, cl
jbe 0x140002c71
mov byte [0x1400bb222], cl
or r14d, 2
cmp ebp, dword [0x14007d04c]
jle 0x140002c82
test r14d, r14d
je 0x140002e9b
cmp dword [0x14007d048], edi
je 0x140002e9b
movsxd r15, dword [0x1400bb238]
test r15d, r15d
je 0x140002cb4
mov r8, r15
mov dword [0x1400bb238], edi
mov edx, 8
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
jmp 0x140002cb7
mov r15d, edi
cmp dword [0x1400bb228], edi
movsxd rbp, r15d
je 0x140002cd2
mov dword [0x1400bb228], edi
mov edi, 1
mov byte [rsp + rbp + 0x30], 0xa
cmp dword [0x1400bb224], 0
je 0x140002cef
mov eax, edi
lea rcx, [rsp + 0x30]
add rax, rbp
add rcx, rax
call fcn.1400033a0
add edi, eax
mov r8, qword [str._unknown_program_]
lea rcx, [rsp + 0x30]
movsxd rax, edi
lea rdx, str._s_Error:_d:
add rax, rbp
mov r9d, esi
add rcx, rax
call fcn.1400017b0
add edi, eax
lea rcx, [rsp + 0x30]
movsxd rax, edi
sub rax, rbx
add rax, rbp
add rcx, rax
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140002d30
mov eax, r14d
add edi, r12d
and eax, 2
test r14b, 1
je 0x140002d80
test eax, eax
lea rcx, str._and_exit
lea r8, [0x1400bb27c]
movsxd rax, edi
cmovne r8, rcx
lea rdx, str.The_adapter_has_been_configured_to_fail_the_current_job_s_when_this_error_occurs_n
add rax, rbp
lea rcx, [rsp + 0x30]
add rcx, rax
call fcn.1400017b0
jmp 0x140002e3d
test eax, eax
je 0x140002e3f
movups xmm0, xmmword [str.The_adapter_has_been_configured_to]
movsxd rax, edi
lea rcx, [rsp + 0x30]
movups xmm1, xmmword [0x14007d208]
add rax, rbp
add rcx, rax
mov eax, dword [0x14007d218]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov dword [rcx + 0x20], eax
mov rax, r13
inc rax
cmp byte [rcx + rax], 0
jne 0x140002db7
add edi, eax
lea rcx, str.exit
cmp byte [0x1400bb222], 2
lea rax, str.restart
lea r8, [rsp + 0x30]
cmove rcx, rax
movsxd rax, edi
add rax, rbp
add r8, rax
mov rdx, r8
sub rdx, rcx
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140002df0
lea rcx, [r8 - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002e02
lea r9, str._after_the_current_job_when_this_error_occurs_n
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002e20
mov rax, r13
inc rax
cmp byte [r8 + rax], 0
jne 0x140002e33
add edi, eax
mov ecx, dword [0x14007d048]
test ecx, ecx
jle 0x140002e5d
lea r8d, [rdi + r15]
test r8d, r8d
jle 0x140002e5d
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov r9, qword [0x1400bb210]
test r9, r9
je 0x140002e95
lea rcx, [rsp + 0x30]
movsxd r8, edi
add rcx, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x1400bb230], 0
jle 0x140002e95
mov rcx, qword [0x1400bb210]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
inc dword [0x1400bb254]
mov eax, r13d
add rsp, 0x1038
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret