Function at 0x140001e78
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov ebp, dword [rcx + 0x18]
mov rbx, rcx
mov r14d, 1
cmp dword [rcx + 0x450], ebp
jae 0x1400020e0
mov r12d, 0x1ffff
mov edx, r14d
mov rcx, rbx
call fcn.14000212c
mov rcx, rbx
cmp eax, r14d
jne 0x140001ef1
mov edx, 8
call fcn.14000212c
mov edx, dword [rbx + 0x450]
mov rcx, qword [rbx + 0x448]
and rdx, r12
mov byte [rdx + rcx], al
add dword [rbx + 0x450], r14d
add dword [rbx + 0x454], r14d
jmp 0x140001fae
mov edx, 0xf
call fcn.14000212c
xor edi, edi
mov rcx, rbx
lea edx, [rdi + 2]
mov esi, eax
call fcn.14000212c
lea ecx, [rdi + 3]
cmp eax, ecx
jne 0x140001f69
mov edi, ecx
mov edx, ecx
mov rcx, rbx
call fcn.14000212c
cmp eax, 7
jne 0x140001f69
lea edx, [rax - 2]
mov rcx, rbx
lea edi, [rax + 3]
call fcn.14000212c
cmp eax, 0x1f
jne 0x140001f69
lea edx, [rax - 0x17]
mov rcx, rbx
lea edi, [rax + 0xa]
call fcn.14000212c
mov ecx, 0xff
cmp eax, ecx
jne 0x140001f69
lea edi, [rcx + 0x29]
jmp 0x140001f53
add edi, ecx
mov edx, 8
mov rcx, rbx
call fcn.14000212c
mov ecx, 0xff
cmp eax, ecx
je 0x140001f51
mov r8d, dword [rbx + 0x450]
lea r9d, [rdi + 3]
sub r8d, esi
add r9d, eax
je 0x140001fae
mov ecx, dword [rbx + 0x450]
mov rdx, qword [rbx + 0x448]
mov eax, r8d
and rax, r12
and rcx, r12
add r8d, r14d
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
add dword [rbx + 0x450], r14d
add dword [rbx + 0x454], r14d
dec r9d
jne 0x140001f7c
mov eax, dword [rbx + 0x450]
cmp dword [rbx + 0x20], r14d
jne 0x140001fff
cmp dword [rbx + 0x458], eax
jae 0x140002079
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
and r8, r12
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
add dword [rbx + 0x458], r14d
mov eax, dword [rbx + 0x458]
add dword [rbx + 0x10], r14d
cmp eax, dword [rbx + 0x450]
jb 0x140001fc6
jmp 0x140002079
cmp dword [rbx + 0x458], eax
jae 0x140002079
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
movsxd rdx, dword [rbx + 0x480]
mov rcx, qword [rbx + 0x470]
and r8, r12
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
add dword [rbx + 0x480], r14d
cmp dword [rbx + 0x480], 0x10000
jne 0x140002060
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x470]
mov r8d, 0x10000
mov rdx, r14
call fcn.140016f90
and dword [rbx + 0x480], 0
add dword [rbx + 0x458], r14d
mov eax, dword [rbx + 0x458]
add dword [rbx + 0x10], r14d
cmp eax, dword [rbx + 0x450]
jb 0x140002007
mov eax, dword [0x140046034]
and dword [rbx + 0x454], 0
cmp eax, 0x1000
jbe 0x1400020c2
mov r9, qword [rbx + 0x468]
and dword [0x140046034], 0
test r9, r9
je 0x1400020cb
imul eax, dword [rbx + 0x10], 0x64
mov ecx, dword [rbx + 0x14]
xor edx, edx
div dword [rbx + 0x18]
mov edx, dword [rbx + 0x10]
mov r8d, eax
call r9
test eax, eax
jne 0x1400020cb
mov byte [rbx + 0x45c], r14b
jmp 0x1400020cb
add eax, r14d
mov dword [0x140046034], eax
cmp byte [rbx + 0x45c], 0
jne 0x140002123
cmp dword [rbx + 0x450], ebp
jb 0x140001eae
movsxd rax, dword [rbx + 0x480]
test eax, eax
je 0x140002108
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x470]
mov r8, rax
mov rdx, r14
call fcn.140016f90
and dword [rbx + 0x480], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
mov eax, 4
jmp 0x14000210a