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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x14005c678]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0xf0]
call fcn.14002d090
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x14002bf77
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x44]
lea r8, [0x14003c2d0]
mov edx, 0x157
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x44]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002bf18
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0xf8]
call fcn.14002d090
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x14002bfdc
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x4c]
lea r8, [0x14003c308]
mov edx, 0x15a
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x4c]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002bf7d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.14002e2e0
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x14002c03e
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x54]
lea r8, [0x14003c340]
mov edx, 0x15f
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x54]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002bfe2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.14002e2e0
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jge 0x14002c0a0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rsp + 0x5c]
lea r8, [0x14003c378]
mov edx, 0x160
mov rcx, rax
call fcn.140006ed0
mov eax, dword [rsp + 0x5c]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002c044
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov edx, 0x18
lea rcx, [rsp + 0xa8]
call fcn.140008f70
lea rcx, [rsp + 0xa8]
call fcn.140002a00
nop
cmp qword [rsp + 0x38], 0x8000
jbe 0x14002c0fc
mov byte [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 0x8000
lea rcx, [rsp + 0xa8]
call fcn.14002f780
jmp 0x14002c118
mov byte [rsp + 0x31], 0
lea r8, [rsp + 0x31]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xa8]
call fcn.14002f780
cmp qword [rsp + 0x38], 0
jbe 0x14002c2ce
lea rcx, [rsp + 0xa8]
call fcn.140030c90
cmp qword [rsp + 0x38], rax
jae 0x14002c154
mov byte [rsp + 0x32], 0
lea r8, [rsp + 0x32]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xa8]
call fcn.14002f780
mov dword [rsp + 0xa0], 0
lea rcx, [rsp + 0xa8]
call fcn.140030c90
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0xa8]
call fcn.14000fbb0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x14002c1f9
mov rax, qword [rsp + 0xe8]
lea r8, [0x14003c3b0]
mov edx, 0x179
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0xa8]
call fcn.140003420
mov eax, dword [rsp + 0x68]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002c15f
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0xc0], 0
lea rcx, [rsp + 0xa8]
call fcn.140030c90
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0xa8]
call fcn.14000fbb0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x14002c2bf
mov rax, qword [rsp + 0xe8]
lea r8, [0x14003c3e8]
mov edx, 0x182
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0xa8]
call fcn.140003420
mov eax, dword [rsp + 0x74]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002c225
jmp 0x14002c118
movzx eax, byte [rsp + 0x100]
test eax, eax
je 0x14002c336
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x14002c330
mov rax, qword [rsp + 0xe8]
lea r8, [0x14003c420]
mov edx, 0x187
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x7c], eax
lea rcx, [rsp + 0xa8]
call fcn.140003420
mov eax, dword [rsp + 0x7c]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002c2da
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, eax
call fcn.1400026b0
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x14002c395
mov rax, qword [rsp + 0xe8]
lea r8, [0x14003c458]
mov edx, 0x189
mov rcx, rax
call fcn.140006e70
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0xa8]
call fcn.140003420
mov eax, dword [rsp + 0x84]
jmp 0x14002c3ba
xor eax, eax
test eax, eax
jne 0x14002c336
mov dword [rsp + 0x88], 0
lea rcx, [rsp + 0xa8]
call fcn.140003420
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400317d0
add rsp, 0xe8
ret