Function at 0x14001a460
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 0x14001a6c2
mov edi, 0x1ffff
mov r15d, 0xff
mov edx, r12d
mov rcx, rbx
call fcn.14001a70c
mov rcx, rbx
cmp eax, r12d
jne 0x14001a4de
mov edx, 8
call fcn.14001a70c
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 0x14001a59c
mov edx, reloc.WSOCK32.dll_ntohs
call fcn.14001a70c
xor edi, edi
mov rcx, rbx
lea edx, [rdi + 2]
mov esi, eax
call fcn.14001a70c
lea ecx, [rdi + 3]
cmp eax, ecx
jne 0x14001a551
mov edi, ecx
mov edx, ecx
mov rcx, rbx
call fcn.14001a70c
cmp eax, 7
jne 0x14001a551
lea edx, [rax - 2]
mov rcx, rbx
lea edi, [rax + 3]
call fcn.14001a70c
cmp eax, 0x1f
jne 0x14001a551
lea edx, [rax - 0x17]
mov rcx, rbx
lea edi, [rax + 0xa]
call fcn.14001a70c
cmp eax, r15d
jne 0x14001a551
mov edi, 0x128
jmp 0x14001a53f
add edi, r15d
mov edx, 8
mov rcx, rbx
call fcn.14001a70c
cmp eax, r15d
je 0x14001a53c
mov r8d, dword [rbx + 0x458]
lea r9d, [rax + rdi + 3]
mov edi, 0x1ffff
sub r8d, esi
test r9d, r9d
je 0x14001a59c
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
dec r9d
jne 0x14001a56a
mov eax, dword [rbx + 0x458]
cmp dword [rbx + 0x20], r12d
jne 0x14001a651
jmp 0x14001a5dd
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 0x14001a5ae
jmp 0x14001a659
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 0x14001a640
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x478]
mov r8d, 0x10000
mov rdx, r12
call fcn.140071494
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 0x14001a5e7
mov eax, dword [0x1400b6a68]
and dword [rbx + 0x45c], 0
cmp eax, 0x1000
jbe 0x14001a6a4
mov r9, qword [rbx + 0x470]
and dword [0x1400b6a68], 0
test r9, r9
je 0x14001a6ad
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 0x14001a6ad
mov byte [rbx + 0x464], r12b
jmp 0x14001a6ad
add eax, r12d
mov dword [0x1400b6a68], eax
cmp byte [rbx + 0x464], 0
jne 0x14001a705
cmp dword [rbx + 0x458], ebp
jb 0x14001a49b
movsxd rax, dword [rbx + 0x488]
test eax, eax
je 0x14001a6ea
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x478]
mov r8, rax
mov rdx, r12
call fcn.140071494
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 0x14001a6ec