Function at 0x14001a2dc
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 r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, 1
cmp dword [rcx + 0x458], ebp
jae 0x14001a53f
mov edi, 0x1ffff
mov r15d, 0xff
mov edx, r12d
mov rcx, rbx
call fcn.14001a58c
mov rcx, rbx
cmp eax, r12d
jne 0x14001a35a
mov edx, 8
call fcn.14001a58c
mov edx, dword [rbx + 0x458]
mov rcx, qword [rbx + 0x450]
and rdx, rdi
mov byte [rdx + rcx], al
add dword [rbx + 0x458], r12d
add dword [rbx + 0x45c], r12d
jmp 0x14001a419
mov edx, reloc.WSOCK32.dll_ntohs
call fcn.14001a58c
xor edi, edi
mov rcx, rbx
lea edx, [rdi + 2]
mov esi, eax
call fcn.14001a58c
lea ecx, [rdi + 3]
cmp eax, ecx
jne 0x14001a3cd
mov edi, ecx
mov edx, ecx
mov rcx, rbx
call fcn.14001a58c
cmp eax, 7
jne 0x14001a3cd
lea edx, [rax - 2]
mov rcx, rbx
lea edi, [rax + 3]
call fcn.14001a58c
cmp eax, 0x1f
jne 0x14001a3cd
lea edx, [rax - 0x17]
mov rcx, rbx
lea edi, [rax + 0xa]
call fcn.14001a58c
cmp eax, r15d
jne 0x14001a3cd
mov edi, 0x128
jmp 0x14001a3bb
add edi, r15d
mov edx, 8
mov rcx, rbx
call fcn.14001a58c
cmp eax, r15d
je 0x14001a3b8
mov r8d, dword [rbx + 0x458]
lea r9d, [rax + rdi + 3]
mov edi, 0x1ffff
sub r8d, esi
test r9d, r9d
je 0x14001a419
mov ecx, dword [rbx + 0x458]
mov rdx, qword [rbx + 0x450]
mov eax, r8d
and rax, rdi
and rcx, rdi
add r8d, r12d
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
add dword [rbx + 0x458], r12d
add dword [rbx + 0x45c], r12d
add r9d, 0xffffffff
jne 0x14001a3e6
mov eax, dword [rbx + 0x458]
cmp dword [rbx + 0x20], r12d
jne 0x14001a4ce
jmp 0x14001a45a
mov r8d, dword [rbx + 0x460]
mov rax, qword [rbx + 0x450]
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
and r8, rdi
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
add dword [rbx + 0x10], r12d
add dword [rbx + 0x460], r12d
mov eax, dword [rbx + 0x458]
cmp dword [rbx + 0x460], eax
jb 0x14001a42b
jmp 0x14001a4d6
mov r8d, dword [rbx + 0x460]
mov rax, qword [rbx + 0x450]
movsxd rdx, dword [rbx + 0x488]
mov rcx, qword [rbx + 0x478]
and r8, rdi
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
add dword [rbx + 0x488], r12d
cmp dword [rbx + 0x488], 0x10000
jne 0x14001a4bd
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x478]
mov r8d, 0x10000
mov rdx, r12
call fcn.140077844
and dword [rbx + 0x488], 0
add dword [rbx + 0x460], r12d
add dword [rbx + 0x10], r12d
mov eax, dword [rbx + 0x458]
cmp dword [rbx + 0x460], eax
jb 0x14001a464
mov eax, dword [0x1400bd7a8]
and dword [rbx + 0x45c], 0
cmp eax, 0x1000
jbe 0x14001a521
mov r9, qword [rbx + 0x470]
and dword [0x1400bd7a8], 0
test r9, r9
je 0x14001a52a
mov eax, dword [rbx + 0x10]
mov ecx, dword [rbx + 0x14]
xor edx, edx
imul eax, eax, 0x64
div dword [rbx + 0x18]
mov edx, dword [rbx + 0x10]
mov r8d, eax
call r9
test eax, eax
jne 0x14001a52a
mov byte [rbx + 0x464], r12b
jmp 0x14001a52a
add eax, r12d
mov dword [0x1400bd7a8], eax
cmp byte [rbx + 0x464], 0
jne 0x14001a582
cmp dword [rbx + 0x458], ebp
jb 0x14001a317
movsxd rax, dword [rbx + 0x488]
test eax, eax
je 0x14001a567
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x478]
mov r8, rax
mov rdx, r12
call fcn.140077844
and dword [rbx + 0x488], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
mov eax, 4
jmp 0x14001a569