Function at 0x1400057e0
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3d0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x2b8], rax
mov edx, dword [r8]
lea rsi, [rbp + 0x240]
xor ebx, ebx
mov qword [rbp + 0x260], rcx
mov rdi, r8
mov r15, rcx
mov r12d, 0xff
lea r14d, [rbx + 4]
lea r13d, [rbx + 1]
mov eax, edx
dec edx
mov dword [rdi], edx
test eax, eax
jne 0x14000585f
mov rcx, rdi
call fcn.1400037a0
mov dword [rdi], r12d
mov edx, r12d
mov eax, dword [rdi + 0x400]
mov ecx, r12d
jmp 0x140005865
mov eax, dword [rdi + rdx*4 + 4]
mov ecx, edx
mov dword [rsi], eax
add rsi, 4
sub r14, r13
jne 0x14000583c
lea rsi, [rbp + 0x270]
mov r14d, 0xa
mov eax, ecx
dec ecx
mov dword [rdi], ecx
test eax, eax
jne 0x14000589d
mov rcx, rdi
call fcn.1400037a0
mov dword [rdi], r12d
mov ecx, r12d
mov eax, dword [rdi + 0x400]
jmp 0x1400058a1
mov eax, dword [rdi + rcx*4 + 4]
mov dword [rsi], eax
add rsi, 4
sub r14, r13
jne 0x14000587d
movups xmm0, xmmword [rbp + 0x270]
mov rax, qword [rbp + 0x290]
lea rcx, [rbp + 0x180]
movups xmm1, xmmword [rbp + 0x280]
mov qword [rbp + 0x268], rax
movups xmmword [rbp + 0x298], xmm0
movups xmmword [rbp + 0x2a8], xmm1
call fcn.140001648
movups xmm6, xmmword [rbp + 0x240]
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x180]
movdqu xmmword [rbp + 0x230], xmm6
call fcn.1400017d4
mov edi, 0x80
mov qword [rsp + 0x30], rbx
mov r12d, 0xc0000000
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov r8d, r13d
mov edx, r12d
mov rcx, r15
lea r14d, [rdi - 0x7d]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
or rcx, 0xffffffffffffffff
cmp rsi, rcx
jne 0x140005a80
cmp eax, 0x20
jne 0x140005a00
lea rcx, [0x140055b58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqa xmm0, xmmword [0x14004ce20]
lea rcx, [rbp + 0x240]
mov rdx, r15
mov qword [rbp + 0x240], rbx
movdqu xmmword [rbp + 0x250], xmm0
call fcn.140009ae0
mov rdx, qword [0x140055ba8]
cmp rdx, qword [0x140055bb0]
je 0x1400059d6
mov qword [rdx], rbx
mov qword [rdx + 0x10], rbx
mov qword [rdx + 0x18], rbx
movups xmm0, xmmword [rbp + 0x240]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0x250]
movdqa xmm0, xmmword [0x14004ce20]
movups xmmword [rdx + 0x10], xmm1
add qword [0x140055ba8], 0x20
movdqu xmmword [rbp + 0x250], xmm0
mov word [rbp + 0x240], bx
jmp 0x1400059e2
lea r8, [rbp + 0x240]
call fcn.140009eb8
lea rcx, [rbp + 0x240]
call fcn.140009a7c
lea rcx, [0x140055b58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140005d66
cmp eax, 5
jne 0x140005d66
mov edx, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x20], r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
or rax, 0xffffffffffffffff
cmp rsi, rax
jne 0x140005a80
mov rcx, r15
call fcn.140004384
test eax, eax
je 0x140005d66
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x20], r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
or rax, 0xffffffffffffffff
cmp rsi, rax
je 0x140005d66
xor eax, eax
lea rdx, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140005d5d
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x2710
jl 0x140005d5d
cmp dword [rbp + 0x338], ebx
je 0x140005ad3
cmp rcx, qword [0x1400569b8]
jle 0x140005ad3
xchg qword [0x1400569b8], rcx
mov rcx, qword [rsp + 0x58]
movups xmm6, xmmword [rbp + 0x240]
movabs rax, 0xa3d70a3d70a3d70b
mov dword [rsp + 0x40], ebx
imul rcx
mov r12d, ebx
mov dword [rsp + 0x50], ebx
add rdx, rcx
mov dword [rsp + 0x48], r13d
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
shl rax, 3
cmp rcx, 0x800001
jl 0x140005b33
cqo
mov r12d, 0x800000
and edx, 0x7fffff
mov dword [rsp + 0x40], r12d
add rax, rdx
sar rax, 0x17
mov qword [rsp + 0x48], rax
jmp 0x140005b38
mov dword [rsp + 0x50], r13d
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x1a8
call fcn.14001c6a0
mov r9d, 0x100
lea r8, [rbp + 0x298]
mov edx, 2
lea rcx, [rbp - 0x30]
call fcn.14000e590
lea r8, [rbp + 0x268]
lea rcx, [rbp - 0x30]
call fcn.14000ec90
mov r14d, ebx
mov r13d, ebx
mov rdi, rbx
cmp dword [rsp + 0x50], ebx
je 0x140005c38
mov eax, dword [rsp + 0x58]
mov ecx, eax
mov dword [rsp + 0x40], eax
call fcn.1400214b4
mov r12, rax
test rax, rax
je 0x140005d39
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x54]
mov rdx, rax
mov rcx, rsi
call fcn.140005768
mov r8d, dword [rsp + 0x54]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x30]
mov r9, r12
mov qword [rsp + 0x20], r8
mov rdx, r12
mov qword [rsp + 0x48], rbx
call fcn.14000ede0
test eax, eax
jne 0x140005c05
lea rax, [rbp + 0x260]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.14000f180
test eax, eax
jne 0x140005d31
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.14000568c
test eax, eax
je 0x140005d31
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x54]
mov rdx, r12
mov rcx, rsi
call fcn.1400056f0
mov r14d, eax
jmp 0x140005d31
mov ecx, r12d
call fcn.1400214b4
mov r12, rax
test rax, rax
je 0x140005d39
cmp dword [rsp + 0x48], ebx
jbe 0x140005d31
mov r15d, dword [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14000568c
mov r14d, eax
test eax, eax
je 0x140005d2a
lea r9, [rsp + 0x54]
mov r8d, r15d
mov rdx, r12
mov rcx, rsi
call fcn.140005768
mov r14d, eax
test eax, eax
je 0x140005d2a
cmp dword [rsp + 0x54], r15d
jne 0x140005d2a
mov r8d, dword [rsp + 0x54]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x30]
mov r9, r12
mov qword [rsp + 0x20], r8
mov rdx, r12
mov qword [rsp + 0x40], rbx
call fcn.14000ede0
test eax, eax
jne 0x140005ce7
lea rax, [rbp + 0x240]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.14000f180
test eax, eax
jne 0x140005d15
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14000568c
test eax, eax
je 0x140005d15
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x54]
mov rdx, r12
mov rcx, rsi
call fcn.1400056f0
mov r14d, eax
test eax, eax
je 0x140005d2a
add rdi, 0x800000
inc r13d
cmp r13d, dword [rsp + 0x48]
jb 0x140005c5b
mov r15, qword [rbp + 0x260]
mov rcx, r12
call fcn.1400214a0
lea rcx, [rbp - 0x30]
call fcn.14000f310
test r13d, r13d
jne 0x140005d95
test r14d, r14d
jne 0x140005d95
xorps xmm0, xmm0
movups xmmword [rbp + 0x298], xmm0
movups xmmword [rbp + 0x2a8], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x2b8]
xor rcx, rsp
call fcn.14001a2c0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [rbp + 0x270]
mov rax, qword [rsp + 0x58]
mov r12d, 2
movups xmm1, xmmword [rbp + 0x280]
mov r8d, r12d
mov rdx, rbx
movaps xmmword [rsp + 0x70], xmm0
mov rcx, rsi
movsd xmm0, qword [rbp + 0x290]
movsd qword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x1400559b8]
mov dword [rsp + 0x60], 0x1020102
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x1400559c8]
mov dword [rsp + 0x64], r13d
movups xmmword [rbp - 0x58], xmm0
mov qword [rsp + 0x68], rax
movdqu xmmword [rbp - 0x68], xmm6
mov dword [rbp - 0x38], 0x3040304
movups xmmword [rbp - 0x48], xmm1
call fcn.14000568c
lea r9, [rsp + 0x54]
mov rcx, rsi
lea r8d, [r12 + 0x6a]
lea rdx, [rsp + 0x60]
call fcn.1400056f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r14, str..mallab
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax + 1]
mov eax, r12d
add esi, edi
mov ecx, esi
mul rcx
lea rcx, [r12 - 3]
cmovo rax, rcx
mov rcx, rax
call fcn.1400214b4
mov rdi, rax
test rax, rax
je 0x140005d66
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, [0x14004b4a0]
mov edx, esi
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, rdi
call fcn.1400214a0
jmp 0x140005d66