Function at 0x10001a2e4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, 1
mov rdi, rcx
xor esi, esi
mov r12d, ebp
call fcn.100019314
mov ebx, eax
test rdi, rdi
jne 0x10001a32a
lea ecx, [rbp + 5]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10001a67f
cmp qword [rdi + 0x220], rsi
je 0x10001a33a
mov ecx, 0x20
jmp 0x10001a31d
mov rcx, rdi
call fcn.1000197d0
test al, 0x11
jne 0x10001a3a0
test al, 0xe
je 0x10001a3a0
test ebx, ebx
je 0x10001a3a0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.100019494
mov rbx, rax
test rax, rax
je 0x10001a386
mov edx, ebp
mov rcx, rax
call fcn.10001981c
mov edx, ebp
mov rcx, rbx
call fcn.10001a064
mov r12d, eax
test eax, eax
jne 0x10001a395
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10001a38f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov esi, eax
test eax, eax
jne 0x10001a3a0
mov rax, qword [rdi + 0x70]
mov qword [rdi + 0x210], rax
mov rcx, rdi
call fcn.1000197d0
lea rbx, [0x10000e950]
mov r14d, eax
mov r13d, eax
and r14d, 0x10
je 0x10001a4cc
mov rcx, qword [rdi + 8]
mov r8, qword [0x10005c4b0]
mov rdx, qword [rdi + 0x218]
mov qword [rdi + 0x210], rdx
cmp rcx, r8
jne 0x10001a3fe
cmp dword [0x10005d5f4], 0
je 0x10001a3fb
mov rcx, qword [0x10005c4b8]
xor r9d, r9d
xor r8d, r8d
call qword [0x10005d638]
jmp 0x10001a412
cmp rcx, r8
cmove rcx, qword [0x10005c4b8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rdi + 8]
mov rax, qword [0x10005c4b0]
cmp rcx, rax
jne 0x10001a42e
cmp dword [0x10005d5f4], 0
jne 0x10001a43c
cmp rcx, rax
cmove rcx, qword [0x10005c4b8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test r13b, 8
je 0x10001a4cc
xor edx, edx
mov rcx, rdi
call fcn.1000206e8
test eax, eax
je 0x10001a48f
mov eax, dword [rdi + 0x40]
test al, 0x40
je 0x10001a48f
and eax, 0xffffffbf
xor edx, edx
mov rcx, rdi
mov dword [rdi + 0x40], eax
call fcn.100020a20
test eax, eax
je 0x10001a478
and dword [rdi + 0x1a8], 0xfffffff7
jmp 0x10001a4cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], 0x10a4
lea r9, [0x10000e968]
jmp 0x10001a4a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], 0x10ac
lea r9, [0x10000e898]
mov r8, qword [rdi + 0x200]
mov esi, eax
movzx eax, ax
or eax, 0x80070000
test esi, esi
mov ecx, ebp
cmovle eax, esi
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.100018010
mov rcx, rdi
call fcn.10001a6a4
mov rcx, qword [rdi + 8]
call fcn.10001889c
mov rbp, qword [rdi + 0x1e0]
jmp 0x10001a501
mov rbx, rbp
mov rbp, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbp, rbp
jne 0x10001a4e6
mov rcx, qword [rdi + 0x1c8]
xor edx, edx
call fcn.100025100
mov rbx, qword [rdi + 0x1d8]
test rbx, rbx
je 0x10001a53f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10001a53f
and qword [rdi + 0x1d8], rbp
mov rcx, qword [rdi + 0x10]
call fcn.100025ba4
mov rcx, qword [rdi + 0x20]
call fcn.100025ba4
test r14d, r14d
je 0x10001a5b0
cmp qword [rdi + 0x218], 0
jne 0x10001a56e
mov rcx, qword [rdi + 0x200]
call fcn.1000177b8
jmp 0x10001a5b0
test r13b, 2
je 0x10001a5b0
mov r8, qword [rdi + 0x200]
xor edx, edx
lea rax, [0x10000e950]
mov dword [rsp + 0x30], 0x10df
mov qword [rsp + 0x28], rax
lea r9, [0x10000e9a0]
lea ecx, [rdx + 1]
xor r12d, r12d
mov esi, 0x570
mov dword [rsp + 0x20], 0x80070570
call fcn.100018010
cmp qword [rdi + 0x1f0], 0
je 0x10001a5c4
xor edx, edx
mov rcx, rdi
call fcn.1000182d0
mov rbx, qword [rdi + 0x1d0]
test rbx, rbx
je 0x10001a5ec
mov rcx, rbx
call fcn.1000302f8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rdi + 0x200]
and qword [rdi + 0x1d0], 0
test rbx, rbx
je 0x10001a620
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10001a620
and qword [rdi + 0x200], 0
mov rbx, qword [rdi + 0x208]
test rbx, rbx
je 0x10001a64c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10001a64c
and qword [rdi + 0x208], 0
xor edx, edx
mov r8d, 0x238
mov rcx, rdi
call fcn.100039740
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x10001a67c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret