Function at 0x14002a3f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
lea rdx, [rbp - 0x51]
call fcn.1400298b0
test al, al
jne 0x14002a45d
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x14002a754
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov dword [rbp + 0x1f], 0xffffffff
add rbx, 0x38
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x14002a4bb
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14002c3f0
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.14002c3f0
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.14002c3f0
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.140028ec0
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x14002a4d7
xor bl, bl
jmp 0x14002a74a
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.140028250
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x14002a702
mov rcx, rsi
call fcn.140007b70
test al, al
je 0x14002a702
mov dword [rbp - 0x71], r15d
mov rbx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x69]
sub rbx, rdx
mov rax, qword [rsi]
test rax, rax
je 0x14002a702
test rdx, rdx
je 0x14002a702
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a702
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a702
mov ecx, dword [rbp - 0x71]
cmp ebx, ecx
jne 0x14002a702
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x14002a702
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x14002a702
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a702
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, 4
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a702
cmp dword [rbp - 0x71], 4
jne 0x14002a702
cmp rdi, rbx
je 0x14002a62f
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x14002a702
test rdi, rdi
je 0x14002a702
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a702
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a702
mov eax, dword [rbp - 0x71]
cmp r14d, eax
jne 0x14002a702
sub ebx, edi
cmp eax, ebx
jne 0x14002a702
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002a6fe
cmp qword [rcx], 0xffffffffffffffff
je 0x14002a6fe
mov qword [rbp - 0x31], r15
mov r9d, 1
lea r8, [rbp - 0x2d]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x31], eax
cmp eax, 0xffffffff
jne 0x14002a674
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002a6fe
cmp qword [rsi], 0
je 0x14002a6fe
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call fcn.140007af0
test al, al
je 0x14002a6fe
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14002a6fe
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call fcn.140007af0
test al, al
je 0x14002a6fe
cmp qword [rsp + 0x30], rbx
jne 0x14002a6de
mov rax, qword [rsi]
test rax, rax
je 0x14002a6de
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a6de
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14002a6fe
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140007af0
mov bl, 1
jmp 0x14002a704
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14002a74a
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a7c1
call fcn.140049020
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x29]
call fcn.14002aae0
nop
test rdi, rdi
je 0x14002a795
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002a781
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a7bb
mov rcx, rdi
call fcn.140049020
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r15
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004d324
nop
call fcn.14004d324
nop
int3