Function at 0x14006f7e0
Capabilities:
Clear file content

Disassembly:
push rdi
push rbp
sub rsp, 0x38
mov rdi, rcx
mov rax, qword [rdi + 0x78]
test rax, rax
mov rbp, qword [rdi + 0x70]
je 0x14006f7fb
sub rbp, rax
jmp 0x14006f802
mov rax, qword [rdi + 0x68]
sub rbp, rax
lea rax, [rbp + 4]
cmp rax, qword [rdi + 0x188]
ja 0x14006fcdc
movsx r8d, byte [rdi + 0x230]
lea eax, [r8 - 1]
cmp eax, 7
ja case.default.0x14006f83a
movsxd rax, eax
lea rdx, [0x140000000]
mov rcx, qword [rdx + rax*8 + 0xb9980]
jmp rcx
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x14006fb97
mov byte [rax + rbp], 0xd
mov rax, qword [rdi + 0x78]
mov byte [rax + rbp + 1], 0xa
add rbp, 2
jmp case.0x14006f83a.5
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x14006fbae
mov byte [rax + rbp], 0xd
inc rbp
jmp case.0x14006f83a.5
mov rax, qword [rdi + 0x78]
test rax, rax
je 0x14006fbbb
mov byte [rax + rbp], 0xa
inc rbp
jmp case.0x14006f83a.5
mov rdx, qword [rdi + 0x78]
test rdx, rdx
je 0x14006fbcb
mov rax, qword [rdi + 0x70]
mov rcx, rbp
sub rax, rdx
add rax, 0xfffffffffffffffe
mov byte [rdx], al
shr rcx, 0x3f
mov rdx, qword [rdi + 0x78]
add rcx, rbp
and rcx, 0xfffffffffffffffe
shr eax, 8
mov byte [rdx + 1], al
cmp rcx, rbp
je case.0x14006f83a.5
mov rax, qword [rdi + 0x78]
mov byte [rax + rbp], 0
inc rbp
jmp case.0x14006f83a.5
cmp dword [rdi + 0x208], 0xb
jne 0x14006fa28
cmp r8d, 5
je 0x14006f8f9
cmp r8d, 4
jne 0x14006fa28
mov r9, qword [rdi + 0x78]
test r9, r9
je 0x14006f90f
mov r8, qword [rdi + 0x70]
sub r8, r9
add r8, 0xfffffffffffffffc
jmp 0x14006f917
mov r9, qword [rdi + 0x68]
lea r8, [rbp - 4]
movzx eax, byte [rdi + 0x24e]
test al, 0x20
je 0x14006f936
and eax, 0xffffffdf
mov byte [rdi + 0x24e], al
mov eax, r8d
neg eax
mov dword [rsp + 0x30], eax
jmp 0x14006f93b
mov dword [rsp + 0x30], r8d
test byte [rdi + 0x249], 0x20
je 0x14006f974
movzx r11d, byte [rsp + 0x30]
lea rcx, [rsp + 0x33]
movzx edx, byte [rcx]
mov byte [r9], dl
lea rdx, [rsp + 0x32]
movzx eax, byte [rdx]
mov byte [r9 + 1], al
lea rax, [rsp + 0x31]
movzx r10d, byte [rax]
mov byte [r9 + 2], r10b
mov byte [r9 + 3], r11b
jmp 0x14006f9a1
movzx eax, byte [rsp + 0x30]
mov byte [r9], al
lea rax, [rsp + 0x31]
movzx edx, byte [rax]
mov byte [r9 + 1], dl
lea rdx, [rsp + 0x32]
movzx ecx, byte [rdx]
mov byte [r9 + 2], cl
lea rcx, [rsp + 0x33]
movzx r10d, byte [rcx]
mov byte [r9 + 3], r10b
cmp dword [rdi + 0x228], 0
je 0x14006f9b4
neg r8d
mov dword [rsp + 0x30], r8d
jmp 0x14006f9b9
mov dword [rsp + 0x30], r8d
test byte [rdi + 0x249], 0x20
je 0x14006f9f2
mov r8, qword [rdi + 0x70]
movzx ecx, byte [rcx]
movzx edx, byte [rdx]
mov byte [r8], cl
mov r9, qword [rdi + 0x70]
movzx eax, byte [rax]
movzx r11d, byte [rsp + 0x30]
mov byte [r9 + 1], dl
mov r10, qword [rdi + 0x70]
mov byte [r10 + 2], al
mov rax, qword [rdi + 0x70]
mov byte [rax + 3], r11b
jmp 0x14006fa1f
mov r9, qword [rdi + 0x70]
movzx r8d, byte [rsp + 0x30]
movzx eax, byte [rax]
mov byte [r9], r8b
mov r10, qword [rdi + 0x70]
movzx edx, byte [rdx]
movzx ecx, byte [rcx]
mov byte [r10 + 1], al
mov r11, qword [rdi + 0x70]
mov byte [r11 + 2], dl
mov rax, qword [rdi + 0x70]
mov byte [rax + 3], cl
add rbp, 4
jmp case.0x14006f83a.5
mov rdx, qword [rdi + 0x78]
test rdx, rdx
je 0x14006fc06
mov rcx, qword [rdi + 0x70]
sub rcx, rdx
add rcx, 0xfffffffffffffffc
mov qword [rsp + 0x30], rcx
movzx r8d, cl
test byte [rdi + 0x249], 0x20
je 0x14006fa89
mov rax, rcx
shr rax, 0x18
movzx eax, al
mov byte [rdx], al
mov rdx, rcx
mov r9, qword [rdi + 0x78]
shr rdx, 0x10
movzx edx, dl
mov byte [r9 + 1], dl
mov r10, qword [rdi + 0x78]
shr rcx, 8
movzx ecx, cl
mov byte [r10 + 2], cl
mov r11, qword [rdi + 0x78]
mov byte [r11 + 3], r8b
jmp 0x14006fab7
movzx r8d, byte [rsp + 0x30]
mov byte [rdx], r8b
mov rdx, qword [rdi + 0x78]
movzx ecx, byte [rsp + 0x31]
mov byte [rdx + 1], cl
mov rax, qword [rdi + 0x78]
movzx edx, byte [rsp + 0x32]
mov byte [rax + 2], dl
mov r9, qword [rdi + 0x78]
movzx eax, byte [rsp + 0x33]
mov byte [r9 + 3], al
test byte [rdi + 0x249], 0x20
je 0x14006fadf
mov r9, qword [rdi + 0x70]
mov byte [r9], al
mov rax, qword [rdi + 0x70]
mov byte [rax + 1], dl
mov rdx, qword [rdi + 0x70]
mov byte [rdx + 2], cl
mov rcx, qword [rdi + 0x70]
mov byte [rcx + 3], r8b
jmp 0x14006fafc
mov r9, qword [rdi + 0x70]
mov byte [r9], r8b
mov r8, qword [rdi + 0x70]
mov byte [r8 + 1], cl
mov rcx, qword [rdi + 0x70]
mov byte [rcx + 2], dl
mov rdx, qword [rdi + 0x70]
mov byte [rdx + 3], al
add rbp, 4
jmp case.0x14006f83a.5
mov r8, qword [rdi + 0x1a0]
cmp rbp, r8
jae case.0x14006f83a.5
sub r8, rbp
xor edx, edx
mov rcx, qword [rdi + 0x70]
call fcn.14009ef10
mov rbp, qword [rdi + 0x1a0]
jmp case.0x14006f83a.5
mov ecx, 8
mov edx, 2
lea r8, str.for_put.c
mov r9d, 0x24e
call fcn.14006765c
mov rdx, qword [rdi + 0x78]
test rdx, rdx
je 0x14006fcc8
mov rcx, rdi
mov r8, rbp
call fcn.14006fdb0
and byte [rdi + 0x248], 0xbf
cmp eax, 0xffffffff
je 0x14006fcb0
test byte [rdi + 0x249], 8
je 0x14006fb8e
mov rcx, qword [rdi + 0x178]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14006fc91
and byte [rdi + 0x249], 0xf7
xor eax, eax
add rsp, 0x38
pop rbp
pop rdi
ret
mov rax, qword [rdi + 0x68]
mov byte [rax + rbp], 0xd
mov rdx, qword [rdi + 0x68]
mov byte [rdx + rbp + 1], 0xa
add rbp, 2
jmp case.0x14006f83a.5
mov rax, qword [rdi + 0x68]
mov byte [rax + rbp], 0xd
inc rbp
jmp case.0x14006f83a.5
mov rax, qword [rdi + 0x68]
mov byte [rax + rbp], 0xa
inc rbp
jmp case.0x14006f83a.5
mov rdx, qword [rdi + 0x68]
lea rax, [rbp - 2]
mov r8, rbp
mov byte [rdx], al
shr r8, 0x3f
mov rcx, qword [rdi + 0x68]
add r8, rbp
and r8, 0xfffffffffffffffe
shr eax, 8
mov byte [rcx + 1], al
cmp r8, rbp
je case.0x14006f83a.5
mov rax, qword [rdi + 0x68]
mov byte [rax + rbp], 0
inc rbp
jmp case.0x14006f83a.5
test byte [rdi + 0x249], 0x20
lea rcx, [rbp - 4]
mov qword [rsp + 0x30], rcx
movzx r8d, cl
je 0x14006fc5a
mov rax, rcx
mov rdx, qword [rdi + 0x68]
shr rax, 0x18
movzx eax, al
mov byte [rdx], al
mov rdx, rcx
mov r9, qword [rdi + 0x68]
shr rdx, 0x10
movzx edx, dl
mov byte [r9 + 1], dl
mov r10, qword [rdi + 0x68]
shr rcx, 8
movzx ecx, cl
mov byte [r10 + 2], cl
mov r11, qword [rdi + 0x68]
mov byte [r11 + 3], r8b
jmp 0x14006fab7
mov rcx, qword [rdi + 0x68]
movzx r8d, byte [rsp + 0x30]
mov byte [rcx], r8b
mov rdx, qword [rdi + 0x68]
movzx ecx, byte [rsp + 0x31]
mov byte [rdx + 1], cl
mov rax, qword [rdi + 0x68]
movzx edx, byte [rsp + 0x32]
mov byte [rax + 2], dl
mov r9, qword [rdi + 0x68]
movzx eax, byte [rsp + 0x33]
mov byte [r9 + 3], al
jmp 0x14006fab7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x180], eax
mov eax, 0x26
and byte [rdi + 0x249], 0xf7
add rsp, 0x38
pop rbp
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x180], eax
mov eax, 0x26
add rsp, 0x38
pop rbp
pop rdi
ret
mov rcx, rdi
mov r8, rbp
mov rdx, qword [rdi + 0x68]
call fcn.14006fdb0
jmp 0x14006fb59
mov rcx, rdi
mov edx, 0x200
call fcn.140076620
test eax, eax
je 0x14006f813
mov rcx, rdi
mov edx, 4
call fcn.140076620
test eax, eax
je 0x14006f813
cmp rbp, qword [rdi + 0x188]
ja 0x14006fd21
movsx r8d, byte [rdi + 0x230]
cmp r8d, 1
je 0x14006f81b
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14006fd92
test byte [rax + 0x74], 2
je 0x14006fd64
mov edx, 0x42
mov dword [rax + 0x68], edx
mov rax, qword [rdi + 0x30]
mov dword [rax + 0x6c], edx
mov rax, qword [rdi + 0xc0]
test rax, rax
je 0x14006fd58
xor edx, edx
mov qword [rax + 8], rdx
mov qword [rdi + 0xc0], rdx
mov eax, 0x42
add rsp, 0x38
pop rbp
pop rdi
ret
movzx r8d, byte [rdi + 0x248]
mov rcx, rdi
and r8d, 7
mov edx, 0xffffffff
mov r9d, 0x42
mov dword [rsp + 0x20], 0x42
call fcn.140065650
add rsp, 0x38
pop rbp
pop rdi
ret
mov edx, 0x42
mov ecx, 1
mov r8d, edx
mov r9, rdi
call fcn.140065e30
add rsp, 0x38
pop rbp
pop rdi
ret