Function at 0x140054398
Capabilities:
Copy file
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r8, qword [rcx + 0x38]
movabs rax, 0x6666666666666667
sub r8, qword [rcx + 0x30]
mov rbp, rdx
imul r8
xor ebx, ebx
mov rsi, rcx
mov r14, rdx
sar r14, 4
mov rax, r14
shr rax, 0x3f
add r14, rax
test r14d, r14d
je 0x140054554
mov eax, 0x100
test word [rbp + 4], ax
jne 0x140054554
cmp byte [rbp + 0x2b], 0xb
je 0x140054554
movzx edx, word [rbp + 0x54]
mov ecx, ebx
test edx, edx
je 0x14005442a
mov r8, qword [rbp + 0x58]
mov eax, ecx
add rax, rax
cmp word [r8 + rax*8 + 2], 0xb
je 0x140054554
inc ecx
cmp ecx, edx
jne 0x140054412
lea rdi, [rbp + 0x18]
mov r8, rbx
mov r9, rdi
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x30]
call fcn.1400546c4
mov r13, qword [rsp + 0x30]
test r13, r13
jne 0x140054455
lea edi, [r13 + 0xe]
jmp 0x140054556
mov eax, dword [r13 + 0x28]
cmp eax, r14d
jae 0x140054554
lea r10, str.0123456789abcdef
mov r11d, 0x5c
mov r9, qword [rsi + 0x30]
lea r8, [rax + rax*4]
mov r15, qword [r9 + r8*8]
lea rcx, [r9 + 0x10]
mov rdx, qword [r9 + r8*8 + 8]
lea rcx, [rcx + r8*8]
sub rdx, r15
sar rdx, 1
cmp r15, rcx
jne 0x14005449a
mov ecx, 7
jmp 0x1400544a3
mov rcx, qword [rcx]
sub rcx, r15
sar rcx, 1
lea rax, [rdx + 0x27]
cmp rax, rcx
jbe 0x1400544ae
int 0x2c
lea rdx, [r15 + rdx*2]
cmp byte [r9 + r8*8 + 0x20], bl
je 0x1400544e0
movzx ecx, byte [rbp + 0x1b]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movsx eax, byte [rax + r10]
mov word [rdx], ax
movsx eax, byte [rcx + r10]
mov word [rdx + 2], ax
mov word [rdx + 4], r11w
add rdx, 6
mov rcx, rdi
call fcn.140054008
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
test eax, 0x1050
je 0x140054505
mov edi, 2
jmp 0x140054516
mov rcx, r15
call qword [sym.imp.tdh.dll_TdhLoadManifest]
nop dword [rax + rax]
mov edi, eax
mov rax, qword [rsi]
mov r8d, edi
mov rdx, r15
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [0x14007ef80]
test edi, edi
je 0x140054577
mov eax, dword [r13 + 0x28]
lea rdi, [rbp + 0x18]
inc eax
lea r10, str.0123456789abcdef
mov dword [r13 + 0x28], eax
mov r11d, 0x5c
cmp eax, r14d
jb 0x14005446f
mov edi, ebx
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rsi + 0x48]
cmp eax, dword [r13 + 0x28]
jae 0x140054657
mov rcx, qword [rsi + 0x30]
lea rdx, [rax + rax*4]
mov r12, qword [rcx + rdx*8]
mov rax, qword [rcx + rdx*8 + 8]
sub rax, r12
sar rax, 1
lea r14, [r12 + rax*2]
cmp byte [rcx + rdx*8 + 0x20], bl
je 0x140054607
movzx ecx, byte [rbp + 0x1b]
lea rdx, str.0123456789abcdef
mov eax, ecx
and ecx, 0xf
shr rax, 4
movsx eax, byte [rax + rdx]
mov word [r14], ax
movsx eax, byte [rcx + rdx]
xor edx, edx
mov rcx, r12
mov word [r14 + 2], ax
mov word [r14 + 4], bx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400545f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xb7
jne 0x14005463e
mov eax, 0x5c
mov word [r14 + 4], ax
add r14, 6
mov rdx, r14
lea rcx, [rbp + 0x18]
call fcn.140054008
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x140054630
mov edi, ebx
jmp 0x14005463e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rax, qword [rsi]
mov r9d, edi
mov r8, r12
mov rdx, r15
mov rcx, rsi
mov rax, qword [rax + 0x40]
call qword [0x14007ef80]
or dword [r13 + 0x28], 0xffffffff
jmp 0x140054556