Function at 0x140063530
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 [0x140160188]
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.1400629f0
test al, al
jne 0x14006359d
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x140063894
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 0x1400635fb
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400650c0
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.1400650c0
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.1400650c0
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.140062000
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x140063617
xor bl, bl
jmp 0x14006388a
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.140061390
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x140063842
mov rcx, rsi
call fcn.140026060
test al, al
je 0x140063842
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 0x140063842
test rdx, rdx
je 0x140063842
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x140063842
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140063842
mov ecx, dword [rbp - 0x71]
cmp ebx, ecx
jne 0x140063842
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x140063842
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x140063842
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x140063842
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 0x140063842
cmp dword [rbp - 0x71], 4
jne 0x140063842
cmp rdi, rbx
je 0x14006376f
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x140063842
test rdi, rdi
je 0x140063842
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x140063842
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 0x140063842
mov eax, dword [rbp - 0x71]
cmp r14d, eax
jne 0x140063842
sub ebx, edi
cmp eax, ebx
jne 0x140063842
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006383e
cmp qword [rcx], 0xffffffffffffffff
je 0x14006383e
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 0x1400637b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006383e
cmp qword [rsi], 0
je 0x14006383e
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call fcn.140025fe0
test al, al
je 0x14006383e
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14006383e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call fcn.140025fe0
test al, al
je 0x14006383e
cmp qword [rsp + 0x30], rbx
jne 0x14006381e
mov rax, qword [rsi]
test rax, rax
je 0x14006381e
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14006381e
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14006383e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140025fe0
mov bl, 1
jmp 0x140063844
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14006388a
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063879
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140063901
call fcn.1400cea54
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x29]
call fcn.140063c10
nop
test rdi, rdi
je 0x1400638d5
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400638c1
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400638fb
mov rcx, rdi
call fcn.1400cea54
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.1400ce670
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d3cc4
nop
call fcn.1400d3cc4
nop
int3