Function at 0x18002b0a0
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x10], dl
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1220
call fcn.18009fc20
sub rsp, rax
mov rax, qword [0x180194480]
xor rax, rsp
mov qword [rsp + 0x1210], rax
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
xor ebx, ebx
cmp qword [0x180197aa8], rbx
jne 0x18002ba0a
mov rdx, rcx
lea rcx, [rsp + 0xc0]
call fcn.18000f610
nop
xor r8d, r8d
lea rdx, str..old.log
lea rcx, [rsp + 0x98]
call fcn.1800297f0
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xc0]
call fcn.18002ae70
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.18000f610
nop
lea rcx, [rsp + 0x98]
call fcn.1800144a0
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x98], rbx
mov edx, 0x10
call fcn.180002050
nop
lea rcx, [rsp + 0xc0]
call fcn.1800144a0
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc0], rbx
mov edx, 0x10
call fcn.180002050
nop
mov rdx, r13
lea rcx, [rsp + 0x70]
call fcn.18000f610
nop
xor r8d, r8d
lea rdx, str..log.old
lea rcx, [rsp + 0xe8]
call fcn.1800297f0
nop
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x70]
call fcn.18002ae70
mov rdx, rax
lea rcx, [rsp + 0x138]
call fcn.18000f610
nop
lea rcx, [rsp + 0xe8]
call fcn.1800144a0
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rbx
mov edx, 0x10
call fcn.180002050
nop
lea rcx, [rsp + 0x70]
call fcn.1800144a0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov edx, 0x10
call fcn.180002050
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 7
cmova rcx, qword [rsp + 0x140]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x190]
call fcn.18009b7c0
mov r8d, eax
test eax, eax
jne 0x18002b2b2
mov edx, dword [rsp + 0x1a0]
test dl, 1
mov esi, 0x1ff
mov ecx, esi
mov r14d, 0x16d
cmovne ecx, r14d
mov dword [rsp + 0x44], ecx
mov eax, edx
shr eax, 0xa
test al, 1
je 0x18002b2a7
mov eax, dword [rsp + 0x1a4]
cmp eax, 0xa000000c
jne 0x18002b297
mov edx, 4
jmp 0x18002b2e0
cmp eax, 0xa0000003
jne 0x18002b2a7
mov edi, 0xa
mov edx, edi
jmp 0x18002b2e5
shr edx, 4
and edx, 1
or edx, 2
jmp 0x18002b2e0
mov dword [rsp + 0x44], 0xffff
sub eax, 2
je 0x18002b2d0
sub eax, 1
je 0x18002b2d0
sub eax, 0x32
je 0x18002b2d0
cmp eax, 0x46
mov edx, ebx
jne 0x18002b2d5
mov edx, 1
mov esi, 0x1ff
mov r14d, 0x16d
mov edi, 0xa
mov dword [rsp + 0x40], r8d
lea r15, [0x180194010]
mov qword [rsp + 0x48], r15
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
test edx, edx
je 0x18002b44f
cmp edx, 1
je 0x18002b458
lea rcx, [rsp + 0x170]
cmp qword [rsp + 0x188], 7
cmova rcx, qword [rsp + 0x170]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x190]
call fcn.18009b7c0
mov edx, eax
test eax, eax
jne 0x18002b394
mov r8d, dword [rsp + 0x1a0]
test r8b, 1
cmovne esi, r14d
mov dword [rsp + 0x44], esi
mov ecx, r8d
shr ecx, 0xa
test cl, 1
je 0x18002b386
mov eax, dword [rsp + 0x1a4]
cmp eax, 0xa000000c
jne 0x18002b37f
mov edi, 4
jmp 0x18002b3b7
cmp eax, 0xa0000003
je 0x18002b3b7
mov edi, r8d
shr edi, 4
and edi, 1
or edi, 2
jmp 0x18002b3b7
mov dword [rsp + 0x44], 0xffff
sub eax, 2
je 0x18002b3b2
sub eax, 1
je 0x18002b3b2
sub eax, 0x32
je 0x18002b3b2
cmp eax, 0x46
mov edi, ebx
jne 0x18002b3b7
mov edi, 1
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x48], r15
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
test edi, edi
je 0x18002b404
cmp edi, 1
je 0x18002b40c
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 7
cmova rcx, qword [rsp + 0x140]
call fcn.18009bdd0
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x18002ba37
jmp 0x18002b458
test edx, edx
jne 0x18002ba4f
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 7
cmova rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 7
cmova rcx, qword [rsp + 0x140]
call fcn.18009c2b0
test eax, eax
jne 0x18002ba68
jmp 0x18002b458
test r8d, r8d
jne 0x18002ba86
lea rcx, [rsp + 0x138]
call fcn.1800144a0
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x138], rbx
mov edx, 0x10
call fcn.180002050
nop
jmp 0x18002b48e
mov rdx, r13
lea rcx, [rsp + 0x138]
call fcn.18000f610
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 7
cmova rcx, qword [rsp + 0x140]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x138]
call fcn.1800144a0
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x138], rbx
mov edx, 0x10
call fcn.180002050
cmp r12, 0xffffffffffffffff
je 0x18002baa0
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x128]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 1
mov ecx, 0x20
call fcn.18009ef20
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18002b587
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rsp + 0x128]
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rdx, vtable.std::_Ref_count_resource_void____ptr64__int____cdecl___void____ptr64__.0
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], r12
jmp 0x18002b58a
mov rax, rbx
mov qword [0x180197aa8], r12
mov rdi, qword [0x180197ab0]
mov qword [0x180197ab0], rax
test rdi, rdi
je 0x18002b5d0
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18002b5d0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x18002b5d0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov r9d, 2
lea r8, [rsp + 0x160]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r13d, 0xa00000
test eax, eax
je 0x18002b757
mov rax, qword [rsp + 0x160]
cmp rax, 0x100000
jle 0x18002b757
lea r15, [rax - 0x100000]
cmp r15, r13
cmovg r15, r13
mov rdx, 0xfffffffffff00000
sub rdx, r15
mov r9d, 2
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea rcx, [rsp + 0x170]
cmp qword [rsp + 0x188], 7
cmova rcx, qword [rsp + 0x170]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x18002b757
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rsp + 0x130], ebx
mov dword [rsp + 0x128], ebx
mov r14, rbx
test r15, r15
jle 0x18002b748
mov rsi, r15
nop dword [rax]
nop dword [rax + rax]
mov edi, 0x1000
cmp rsi, rdi
cmovl edi, esi
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x130]
mov r8d, edi
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002b748
mov r8d, dword [rsp + 0x130]
cmp r8d, edi
jne 0x18002b748
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x128]
lea rdx, [rsp + 0x210]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18002b748
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x130], eax
jne 0x18002b748
add r14, 0x1000
sub rsi, 0x1000
cmp r14, r15
jl 0x18002b6c0
test r12, r12
je 0x18002b757
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x1b0]
call fcn.18000f610
mov qword [rsp + 0x1d8], r13
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x1e0]
call fcn.18000f610
mov qword [rsp + 0x208], 0x100000
lea r14, [rsp + 0x1b0]
lea r13, [rsp + 0x210]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x60], r14
cmp r14, r13
je 0x18002b97d
lea rdi, [r14 + 8]
mov rcx, rdi
cmp qword [r14 + 0x20], 7
jbe 0x18002b7c6
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18002b7f9
jmp 0x18002b974
mov rdx, qword [r14 + 0x28]
neg rdx
mov r9d, 2
lea r8, [rsp + 0x160]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002b957
cmp qword [rsp + 0x160], 0
jle 0x18002b957
cmp qword [r14 + 0x20], 7
jbe 0x18002b838
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x40000000
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18002b87d
test r15, r15
je 0x18002b878
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18002b974
mov dword [rsp + 0x130], ebx
mov dword [rsp + 0x128], ebx
mov rdi, rbx
mov rax, qword [r14 + 0x28]
test rax, rax
jle 0x18002b926
nop dword [rax + rax]
sub rax, rdi
mov esi, 0x1000
cmp rax, rsi
cmovl esi, eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x130]
mov r8d, esi
lea rdx, [rsp + 0x210]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002b926
mov r8d, dword [rsp + 0x130]
cmp r8d, esi
jne 0x18002b926
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x128]
lea rdx, [rsp + 0x210]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18002b926
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x130], eax
jne 0x18002b926
add rdi, 0x1000
mov rax, qword [r14 + 0x28]
cmp rdi, rax
jl 0x18002b8a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
test r12, r12
je 0x18002b93f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r15, r15
je 0x18002b94e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add r14, 0x30
jmp 0x18002b7a7
test r15, r15
je 0x18002b966
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18002b974
add r14, 0x30
jmp 0x18002b7a7
lea r9, [fcn.180010000]
mov edx, 0x30
mov r8d, 2
lea rcx, [rsp + 0x1b0]
call fcn.18009fa60
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov r12, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp byte [rsp + 0x1258], 0
je 0x18002b9e3
mov rdx, r12
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r12
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov byte [0x180197aa1], 1
lea rcx, [rsp + 0x168]
call fcn.1800144a0
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x168], rbx
mov edx, 0x10
call fcn.180002050
mov rcx, qword [rsp + 0x1210]
xor rcx, rsp
call fcn.18009f1a0
lea r11, [rsp + 0x1220]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
shr rdx, 0x20
lea r8, [rsp + 0x138]
lea rcx, str.remove
call fcn.18002ae00
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1800142e0
lea r9, [rsp + 0x168]
lea r8, [rsp + 0x138]
mov edx, eax
lea rcx, str.rename
call fcn.18002ad80
lea r8, [rsp + 0x138]
lea rdx, [rsp + 0x40]
lea rcx, str.exists
call fcn.1800142e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x128], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x130], eax
lea rax, str.Win32_error__0x:x_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x16
lea r9, [rsp + 0x128]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.180029f50
nop
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.18000fd00
lea rdx, [0x1801923c8]
lea rcx, [rsp + 0x110]
call fcn.1800a1670
int3