Function at 0x442c70
Capabilities:
Delete file
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x120
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rdx
mov dword [rbp + 0x84], r8d
mov qword [rbp + 0x58], r9
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xe0], 0
nop
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x442d2a
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
mov edx, 0x40000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x60], rax
jmp 0x442d7a
lea rcx, [rbp + 0xb8]
mov rdx, qword [rbp + 0x48]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0xb8]
call fcn.004115a0
mov rcx, rax
mov edx, 0x40000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
cmp rax, 0xffffffffffffffff
setne al
mov byte [rbp + 0x77], al
movzx rax, byte [rbp + 0x77]
test al, al
je 0x4434fc
lea rcx, [rbp + 0xe0]
mov rdx, qword [0x00442c30]
mov r8d, 1
mov r9d, dword [rbp + 0x84]
add r9d, 1
movsxd r9, r9d
call fcn.00413f10
xor rax, rax
mov dword [rbp + 0x6c], eax
xor rax, rax
mov ecx, dword [rbp + 0x84]
mov dword [rbp + 0x70], ecx
mov ecx, eax
mov eax, dword [rbp + 0x70]
cmp ecx, eax
mov dword [rbp + 0x68], ecx
jg 0x4432e8
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0xe0]
mov ecx, dword [rbp + 0x6c]
movsxd rcx, ecx
mov rdx, rcx
add rcx, rcx
add rcx, rcx
add rcx, rcx
sub rcx, rdx
lea rax, [rax + rcx*8]
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x58]
call fcn.00413b70
mov ecx, dword [rbp + 0x68]
movsxd rcx, ecx
cmp rcx, rax
jl 0x442e7e
lea rcx, [rbp + 0xe8]
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + rax*8]
call fcn.00410a30
mov rcx, qword [rbp + 0xe8]
call fcn.00410b80
cmp eax, 1
jl 0x442e7b
mov rcx, qword [rbp + 0xe8]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x5c
jne 0x442e74
lea rcx, [rbp + 0xe8]
mov edx, 1
mov r8d, eax
call fcn.00412760
jmp 0x442e7b
sub eax, 1
test eax, eax
jne 0x442e4b
nop
jmp 0x442e98
lea rcx, [rbp + 0xe8]
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rdx, qword [rbp + 0x58]
mov rdx, qword [rdx + rax*8]
call fcn.00410a30
lea rcx, [rbp + 0xb0]
mov rdx, qword [rbp + 0xe8]
call fcn.00427ff0
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0xb0]
call fcn.00410ac0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x442f15
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rcx, qword [rbp + 0x50]
mov rcx, qword [rcx + rax*8]
call fcn.00412090
mov rcx, rax
mov edx, 0x80000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x88], rax
jmp 0x442f76
lea rcx, [rbp + 0xa8]
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + rax*8]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0xa8]
call fcn.004115a0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileA
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp rax, 0xffffffffffffffff
je 0x4432c5
mov rcx, qword [rbp + 0x88]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize
mov esi, eax
mov ecx, 0x40
mov edx, esi
call sub.kernel32.dll_LocalAlloc
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
test rax, rax
je 0x4432b9
mov ecx, 0x40
imul eax, esi, 0xb
mov r8d, 0xa
xor edx, edx
div r8d
mov rdx, rax
add edx, 0xc
mov edx, edx
call sub.kernel32.dll_LocalAlloc
mov rbx, rax
test rbx, rbx
je 0x4432ad
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
mov r8d, esi
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4432a5
cmp dword [rbp + 0x114], esi
jne 0x4432a5
mov dword [rbp + 0xf6], 0x4034b50
mov word [rbp + 0xfa], 0x14
mov word [rbp + 0xfc], 0x800
mov word [rbp + 0xfe], 8
or ecx, 0xffffffff
mov rdx, qword [rbp + 0x90]
mov r8d, esi
call fcn.00442b90
not eax
mov dword [rbp + 0x104], eax
mov rcx, qword [rbp + 0x90]
mov r8, rbx
mov r9d, esi
imul eax, esi, 0xb
mov r10d, 0xa
xor edx, edx
div r10d
add eax, 0xc
mov rdx, r8
mov r8d, r9d
mov r9d, eax
call fcn.004428e0
mov dword [rbp + 0x108], eax
mov dword [rbp + 0x10c], esi
mov rax, qword [rbp + 0x78]
mov rcx, qword [rax]
call fcn.00410b90
mov word [rbp + 0x110], ax
mov word [rbp + 0x112], 0
mov rcx, qword [rbp + 0x88]
xor rdx, rdx
xor r8, r8
lea r9, [rbp + 0x118]
call sub.kernel32.dll_GetFileTime
mov rcx, qword [rbp + 0x118]
lea rdx, [rbp + 0x118]
call fcn.0041f5d0
mov rcx, qword [rbp + 0x118]
lea rdx, [rbp + 0x102]
lea r8, [rbp + 0x100]
call fcn.0041f5a0
mov rax, qword [rbp + 0x78]
lea r13, [rax + 8]
mov dword [r13], 0x2014b50
mov word [r13 + 4], 0x14
lea rdi, [r13 + 6]
lea rsi, [rbp + 0xfa]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsw word [rdi], word [rsi]
mov word [r13 + 0x20], 0
mov word [r13 + 0x22], 0
mov word [r13 + 0x24], 0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x44316b
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rcx, qword [rbp + 0x50]
mov rcx, qword [rcx + rax*8]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [r13 + 0x26], eax
jmp 0x4431a0
lea rcx, [rbp + 0xa0]
mov eax, dword [rbp + 0x68]
movsxd rax, eax
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + rax*8]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0xa0]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
mov dword [r13 + 0x26], eax
mov qword [rbp + 0xc0], 0
mov rcx, qword [rbp + 0x60]
xor rdx, rdx
mov r8d, 1
lea r9, [rbp + 0xc0]
call fcn.0043c120
mov eax, dword [rbp + 0xc0]
mov dword [r13 + 0x2a], eax
mov rcx, qword [rbp + 0x60]
lea rdx, [rbp + 0xf6]
mov r8d, 0x1e
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x443292
cmp dword [rbp + 0x114], 0x1e
jne 0x443292
mov rax, qword [rbp + 0x78]
mov rcx, qword [rax]
call fcn.004115a0
mov rsi, rax
mov rax, qword [rbp + 0x78]
mov rcx, qword [rax]
call fcn.00410b90
mov rcx, qword [rbp + 0x60]
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x443292
mov rax, qword [rbp + 0x78]
mov rcx, qword [rax]
call fcn.00410b90
cmp dword [rbp + 0x114], eax
jne 0x443292
mov rcx, qword [rbp + 0x60]
mov rdx, rbx
mov r8d, dword [rbp + 0x108]
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x443292
mov eax, dword [rbp + 0x114]
cmp eax, dword [rbp + 0x108]
je 0x443297
xor rax, rax
jmp 0x443299
mov al, 1
mov byte [rbp + 0x77], al
mov eax, dword [rbp + 0x6c]
add eax, 1
mov dword [rbp + 0x6c], eax
mov rcx, rbx
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x90]
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x88]
call sub.kernel32.dll_CloseHandle
movzx rax, byte [rbp + 0x77]
test al, al
je 0x4432e8
mov eax, dword [rbp + 0x68]
add eax, 1
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
cmp ecx, eax
mov dword [rbp + 0x68], ecx
jne 0x442de8
nop
movzx rax, byte [rbp + 0x77]
test al, al
je 0x4432f9
mov eax, dword [rbp + 0x6c]
test eax, eax
jg 0x4432fe
xor rax, rax
jmp 0x443300
mov al, 1
mov byte [rbp + 0x77], al
movzx rax, byte [rbp + 0x77]
test al, al
je 0x4434a3
mov dword [rbp + 0xca], 0x6054b50
mov word [rbp + 0xce], 0
mov word [rbp + 0xd0], 0
mov eax, dword [rbp + 0x6c]
mov word [rbp + 0xd2], ax
mov word [rbp + 0xd4], ax
mov dword [rbp + 0xd6], 0
mov rcx, qword [rbp + 0x60]
xor rdx, rdx
mov r8d, 1
lea r9, [rbp + 0xc0]
call fcn.0043c120
mov eax, dword [rbp + 0xc0]
mov dword [rbp + 0xda], eax
mov word [rbp + 0xde], 0
xor rax, rax
mov esi, dword [rbp + 0x6c]
sub esi, 1
cmp eax, esi
mov dword [rbp + 0x68], eax
jg 0x44345b
add esi, 1
mov rax, qword [rbp + 0xe0]
mov ecx, dword [rbp + 0x68]
movsxd rcx, ecx
mov rdx, rcx
add rcx, rcx
add rcx, rcx
add rcx, rcx
sub rcx, rdx
lea rbx, [rax + rcx*8]
mov rcx, qword [rbx]
call fcn.00410b90
lea rcx, [rbp + 0xd6]
mov edx, dword [rcx]
add edx, eax
add edx, 0x2e
mov dword [rcx], edx
mov rcx, qword [rbp + 0x60]
lea rdx, [rbx + 8]
mov r8d, 0x2e
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x44343c
cmp dword [rbp + 0x114], 0x2e
jne 0x44343c
mov rcx, qword [rbx]
call fcn.004115a0
mov rdi, rax
mov rcx, qword [rbx]
call fcn.00410b90
mov rcx, qword [rbp + 0x60]
mov rdx, rdi
mov r8d, eax
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x44343c
mov rcx, qword [rbx]
call fcn.00410b90
cmp dword [rbp + 0x114], eax
je 0x443444
xor rax, rax
mov byte [rbp + 0x77], al
jmp 0x44345b
mov eax, dword [rbp + 0x68]
add eax, 1
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
cmp eax, esi
mov dword [rbp + 0x68], eax
jne 0x44338d
nop
movzx rax, byte [rbp + 0x77]
test al, al
je 0x443499
mov rcx, qword [rbp + 0x60]
lea rdx, [rbp + 0xca]
mov r8d, 0x16
lea r9, [rbp + 0x114]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x443499
cmp dword [rbp + 0x114], 0x16
je 0x44349e
xor rax, rax
jmp 0x4434a0
mov al, 1
mov byte [rbp + 0x77], al
mov rcx, qword [rbp + 0x60]
call sub.kernel32.dll_CloseHandle
movzx rax, byte [rbp + 0x77]
test al, al
jne 0x4434fc
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4434d5
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
jmp 0x4434fc
lea rcx, [rbp + 0x98]
mov rdx, qword [rbp + 0x48]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x98]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_DeleteFileA
nop
lea rcx, [rbp + 0x98]
mov edx, 5
call fcn.00410470
lea rcx, [rbp + 0xe0]
mov rdx, qword [0x00442c30]
call fcn.004140f0
lea rcx, [rbp + 0xe8]
call fcn.00410360
movzx rax, byte [rbp + 0x77]
lea rsp, [rbp + 0x120]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret