Function at 0x140003be0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, rcx
xor r12d, r12d
mov rcx, qword [rcx + 0x258]
test rcx, rcx
je 0x140003e78
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x20]
test eax, eax
jne 0x140003e78
mov qword [rsp + 0x4e8], rbx
mov qword [rsp + 0x4f0], rdi
mov qword [rsp + 0x4b8], r14
mov qword [rsp + 0x4b0], r15
nop
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x60]
mov edx, 0x10
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jne 0x140003e4d
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140003c50
mov ebx, r12d
nop dword [rax]
mov rcx, qword [rsi + 0x258]
lea r15, [rbp - 0x50]
mov r14d, ebx
lea r8, [rbp - 0x70]
shl r14, 5
lea rdx, [rbp - 0x80]
add r15, r14
mov rax, qword [rcx]
movups xmm0, xmmword [r15]
movaps xmmword [rbp - 0x80], xmm0
call qword [rax + 0x50]
test eax, eax
jne 0x140003e3c
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x4c], r12d
mov rdi, r12
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140003e32
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x4c]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140003d1a
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x140003d1a
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140002420
mov rcx, qword [rsp + 0x58]
mov rdi, rax
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rdi, rdi
je 0x140003e32
mov edx, dword [rsp + 0x4c]
test edx, edx
je 0x140003e32
mov rax, qword [rdi]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 0x1a0]
lea rcx, [rsp + 0x7c]
mov r9d, 0xff
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [rax + 0x60]
test eax, eax
jne 0x140003e32
mov rax, qword [rbp + r14 - 0x60]
lea r9, [rsp + 0x40]
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov r8d, 8
mov eax, dword [rbp + r14 - 0x58]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 0x10
mov qword [rsp + 0x20], r12
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x44]
lea r9, [rsp + 0x40]
mov rcx, qword [rsi + 0x28]
lea rdx, [rsp + 0x44]
add eax, eax
mov qword [rsp + 0x20], r12
mov r8d, 4
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140003e32
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x1a0]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
inc ebx
cmp ebx, dword [rsp + 0x48]
jb 0x140003c80
jmp 0x140003c50
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15, qword [rsp + 0x4b0]
mov r14, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4f0]
mov rbx, qword [rsp + 0x4e8]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 8
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 0x10
mov qword [rsp + 0x20], r12
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140005550
add rsp, 0x4c0
pop r12
pop rsi
pop rbp
ret