Function at 0x140001480
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.140156570
sub rsp, rax
xor edi, edi
mov dword [0x1401b925c], ecx
mov r14d, edi
lea r15, [rsp + 0x1098]
mov rbx, r8
mov ebp, edx
mov esi, ecx
call fcn.140001240
mov r9, rbx
mov qword [rsp + 0x28], r15
mov r13, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
lea rbx, [0x1401bcf40]
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 [0x1401b926c]
test eax, eax
mov r12d, eax
cmovs r12d, r13d
sub ecx, 1
movsxd rdx, ecx
js 0x14000152a
mov rcx, qword [0x1401b9278]
nop
cmp dword [rcx + rdx*4], esi
je 0x14000151d
sub rdx, 1
jns 0x140001510
jmp 0x14000152a
mov byte [0x1401b9251], 1
mov r14d, 1
mov eax, dword [0x1401b9274]
sub eax, 1
movsxd rcx, eax
js 0x140001571
mov rax, qword [0x1401b9288]
nop
cmp dword [rax + rcx*4], esi
je 0x14000154d
sub rcx, 1
jns 0x140001540
jmp 0x140001571
movzx ecx, byte [0x1401b9253]
test cl, cl
je 0x140001571
movzx edx, byte [0x1401b9252]
test dl, dl
je 0x140001567
cmp dl, cl
jbe 0x140001571
mov byte [0x1401b9252], cl
or r14d, 2
cmp ebp, dword [reloc.WS2_32.dll_accept]
jle 0x140001582
test r14d, r14d
je 0x14000179b
cmp dword [0x140175008], edi
je 0x14000179b
movsxd r15, dword [0x1401b9268]
test r15d, r15d
je 0x1400015b4
mov r8, r15
mov dword [0x1401b9268], edi
mov edx, 8
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
jmp 0x1400015b7
mov r15d, edi
cmp dword [0x1401b9258], edi
movsxd rbp, r15d
je 0x1400015d2
mov dword [0x1401b9258], edi
mov edi, 1
mov byte [rsp + rbp + 0x30], 0xa
cmp dword [0x1401b9254], 0
je 0x1400015ef
mov eax, edi
lea rcx, [rsp + 0x30]
add rax, rbp
add rcx, rax
call fcn.140002140
add edi, eax
mov r8, qword [section..data]
lea rcx, [rsp + 0x30]
movsxd rax, edi
lea rdx, str._s_Error:_d:
add rax, rbp
mov r9d, esi
add rcx, rax
call fcn.140002a20
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 0x140001630
mov eax, r14d
add edi, r12d
and eax, 2
test r14b, 1
je 0x140001680
test eax, eax
lea rcx, str._and_exit
lea r8, [0x1401b92ac]
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.140002a20
jmp 0x14000173d
test eax, eax
je 0x14000173f
movups xmm0, xmmword [str.The_adapter_has_been_configured_to]
movsxd rax, edi
lea rcx, [rsp + 0x30]
movups xmm1, xmmword [0x1401751c8]
add rax, rbp
add rcx, rax
mov eax, dword [0x1401751d8]
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 0x1400016b7
add edi, eax
lea rcx, str.exit
cmp byte [0x1401b9252], 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 0x1400016f0
lea rcx, [r8 - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001702
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 0x140001720
mov rax, r13
inc rax
cmp byte [r8 + rax], 0
jne 0x140001733
add edi, eax
mov ecx, dword [0x140175008]
test ecx, ecx
jle 0x14000175d
lea r8d, [rdi + r15]
test r8d, r8d
jle 0x14000175d
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov r9, qword [0x1401b9240]
test r9, r9
je 0x140001795
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 [0x1401b9260], 0
jle 0x140001795
mov rcx, qword [0x1401b9240]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
inc dword [0x1401b9284]
mov eax, r13d
add rsp, 0x1038
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret