Function at 0x1400b1750
Capabilities:
Clear file content

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x14041fc80]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
test rcx, rcx
je 0x1400b15cc
mov rcx, qword [rsi + 0x18]
mov rbx, rsi
call fcn.1400b1550
mov rdi, qword [rbx + 0x40]
mov rsi, qword [rsi + 0x10]
test rdi, rdi
je 0x1400b15a0
mov rcx, rdi
call fcn.1400aff80
mov edx, 0x28
mov rcx, rdi
call fcn.1402aa7f0
mov rcx, qword [rbx + 0x20]
lea rax, [rbx + 0x30]
cmp rcx, rax
je 0x1400b15ba
mov rax, qword [rbx + 0x30]
lea rdx, [rax + 1]
call fcn.1402aa7f0
mov edx, 0x48
mov rcx, rbx
call fcn.1402aa7f0
test rsi, rsi
jne 0x1400b1572
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x1400b15e0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14018c640
nop
nop word cs:[rax + rax]
endbr64
sub rsp, 0x38
mov rax, qword [0x14041fc80]
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rcx, qword [rsp + 0x28]
sub rcx, qword [rax]
jne 0x1400b1623
mov rcx, qword [0x1404691f0]
add rsp, 0x38
jmp fcn.1400b1550
call fcn.14018c640
nop
nop dword [rax]
endbr64
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [0x14041fc80]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rax, [rsp + 0x20]
mov rbx, rdx
mov rdx, rcx
mov rcx, rax
add rbx, 0x3200000
call fcn.140232d10
cmp qword [rsp + 0x30], rbx
setae al
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rsi]
jne 0x1400b167e
add rsp, 0x48
pop rbx
pop rsi
ret
call fcn.14018c640
nop
nop word cs:[rax + rax]
nop
endbr64
sub rsp, 0x38
mov rax, qword [0x14041fc80]
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rcx, qword [rsp + 0x28]
sub rcx, qword [rax]
jne 0x1400b16b8
add rsp, 0x38
ret
call fcn.14018c640
nop
nop
endbr64
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [0x14041fc80]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov ebx, edx
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, ebx
mov ecx, eax
call qword [sym.imp.msvcrt.dll__chsize]
test eax, eax
sete al
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rsi]
jne 0x1400b1703
add rsp, 0x38
pop rbx
pop rsi
ret
call fcn.14018c640
nop
nop dword [rax]
endbr64
sub rsp, 0x38
mov rax, qword [0x14041fc80]
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rcx, qword [rsp + 0x28]
sub rcx, qword [rax]
jne 0x1400b173d
mov eax, 0x800
add rsp, 0x38
ret
call fcn.14018c640
nop
nop word cs:[rax + rax]
nop
endbr64
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x14041fc80]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov esi, edx
mov ebx, r8d
call qword [sym.imp.msvcrt.dll__fileno]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov edx, ebx
xor r9d, r9d
xor r8d, r8d
mov rbp, rax
mov eax, esi
add rax, rdx
lea edx, [rsi + rbx]
mov rcx, rbp
shr rax, 0x20
shl rax, 0x20
or rdx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x1400b17c3
mov rcx, rbp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.14018c640
nop
nop dword [rax]
endbr64
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [0x14041fc80]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, rcx
call fcn.14022f1b0
cmp al, 3
je 0x1400b1810
mov rcx, rbx
call fcn.1402310b0
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rsi]
jne 0x1400b1820
add rsp, 0x38
pop rbx
pop rsi
ret
mov rcx, rbx
call fcn.1402331a0
cmp al, 2
jne 0x1400b17f7
xor eax, eax
jmp 0x1400b17ff
call fcn.14018c640
endbr64
sub rdx, 1
mov rcx, rax
jne 0x1400b1866
call fcn.1402aaa80
mov rcx, rbx
call fcn.1402331a0
add eax, 1
cmp al, 1
jbe 0x1400b1852
mov rcx, rbx
call fcn.1402331a0
cmp al, 2
je 0x1400b186b
call fcn.1402ab040
endbr64
mov rbx, rax
call fcn.1402aac60
mov rcx, rbx
call fcn.14018db80
call fcn.1402aac60
xor eax, eax
jmp 0x1400b17ff