Function at 0x140012a68
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x30], r9d
mov edi, r9d
mov r15, r8
mov r14, rdx
cmp byte [rcx + 8], bl
je 0x140012b51
cmp r9d, 0x4000
jae 0x140012b51
mov eax, dword [rcx + 0xc]
mov rsi, qword [rcx]
shl edi, 8
cmp edi, eax
jbe 0x140012b72
movdqa xmm1, xmmword [0x1400471c0]
movdqa xmm0, xmmword [0x140047330]
movdqa xmmword [rsp + 0x50], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [str._bj_t2]
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rbp + 0x40], 0x2c
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x30]
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm1
lea rcx, [rsp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x70], xmm1
call fcn.1400111e4
xor al, al
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140019540
add rsp, 0x378
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
jne 0x140012b7c
add eax, 0x100
mov dword [rcx + 0xc], eax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140012bd4
movdqa xmm1, xmmword [str.7:4S_b]
movdqa xmm0, xmmword [0x140047330]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x1400464a0]
movdqa xmmword [rsp + 0x70], xmm1
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x1400472d0]
mov qword [rbp + 0x40], 0x34
jmp 0x140012afd
mov r8, r14
lea rdx, [rbp + 0x160]
mov rcx, r15
call fcn.1400132a4
mov r14d, 0x100
mov dword [rsp + 0x38], ebx
mov r8d, r14d
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x38]
mov rcx, rsi
lea rdx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140012c1f
cmp dword [rsp + 0x38], r14d
jne 0x140012c1f
mov bl, 1
jmp 0x140012d43
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [str.U.6j_fMCw]
lea r9, [rsp + 0x3c]
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmmword [rsp + 0x60], xmm0
lea r8, [rsp + 0x40]
movdqa xmmword [rbp - 0x80], xmm0
lea rdx, [rsp + 0x30]
movdqa xmmword [rbp - 0x60], xmm0
lea rcx, [rbp + 0x50]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmm0, xmmword [0x140047330]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x30], xmm1
movdqa xmm1, xmmword [str.7:4S]
movdqa xmmword [rbp + 0x50], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x60], xmm1
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x70], xmm0
movdqa xmmword [rbp + 0x90], xmm0
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmmword [rbp + 0xd0], xmm0
movdqa xmmword [rbp + 0xf0], xmm0
movdqa xmmword [rbp + 0x110], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rsp + 0x3c], eax
mov qword [rbp + 0x40], 0xb
movdqa xmmword [rbp + 0x80], xmm1
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmmword [rbp + 0xe0], xmm1
movdqa xmmword [rbp + 0x100], xmm1
movdqa xmmword [rbp + 0x120], xmm1
movdqa xmmword [rbp + 0x140], xmm1
mov qword [rbp + 0x150], 0x17
call fcn.140013054
xor eax, eax
lea rdi, [rbp + 0x160]
mov rcx, r14
rep stosb byte [rdi], al
mov al, bl
jmp 0x140012b53