Function at 0x140003a99
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x140003d81
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14003c010]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x20]
call fcn.14000af20
lea edx, [r14 + 3]
lea r8d, [r14 + 1]
lea rcx, [rbp + 0x20]
call fcn.140005090
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.1400052d0
lea r8d, [r14 + 0x10]
lea rdx, [rbp - 8]
lea rcx, [0x14003e920]
call fcn.140006f10
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x50]
call fcn.140005500
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x80], rax
lea rdx, [0x14003cad8]
cmp qword [0x14003caf0], 0x10
cmovae rdx, qword [0x14003cad8]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], r14b
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003b70
lea rcx, [rsp + 0x58]
call fcn.140005a70
nop
lea rax, [rsp + 0x38]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov rcx, qword [rbp + 0xa8]
test cl, 2
jne 0x140003bdc
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140003bdc
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xa0]
cmovb r8, qword [rbp + 0xa0]
sub r8, rdx
jmp 0x140003c04
test cl, 4
jne 0x140003c0f
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003c0f
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rsp + 0x38]
call fcn.140005a70
nop
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x70]
lea rcx, [0x14003e920]
call fcn.140007230
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
mov rcx, rax
call fcn.140005bf0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140003ca2
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d88
call fcn.140007a64
mov dword [rbp - 0x30], r14d
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140003d05
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d8e
call fcn.140007a64
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x140003d4c
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d82
call fcn.140007a64
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 0xf
mov byte [rbp - 8], 0
lea rcx, [rbp + 0x20]
call fcn.140003980
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140007a40
add rsp, 0x230
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000f164
nop
call fcn.14000f164
int3
call fcn.14000f164
int3