Function at 0x14002eadc
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r14, rcx
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14002eb45
test byte [rcx + 0x1c], 4
je 0x14002eb45
cmp byte [rcx + 0x19], 5
jb 0x14002eb45
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, 0x8f
call fcn.14000459c
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x1400a76e8]
lea rcx, [rbp + 0x3c0]
xor ebx, ebx
mov edi, 0x104
mov rdx, qword [rax + 0x30]
lea r12d, [rbx + 2]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14002eb98
movzx eax, word [rdx]
test ax, ax
je 0x14002eb98
mov word [rcx], ax
add rdx, r12
add rcx, r12
sub rdi, 1
jne 0x14002eb75
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
lea rcx, [0x1400a7500]
mov word [rax], bx
mov rax, rdi
neg rax
sbb esi, esi
not esi
and esi, 0x8007007a
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov r15d, 0xc
test rdi, rdi
jne 0x14002ec29
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14002ec0b
test byte [rcx + 0x1c], 4
je 0x14002ec0b
cmp byte [rcx + 0x19], r12b
jb 0x14002ec0b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, 0x90
mov r9d, esi
call fcn.1400045c8
mov eax, esi
movzx edi, si
and eax, 0x1fff0000
mov word [rbp + 0x3c0], bx
cmp eax, 0x70000
cmovne edi, esi
jmp 0x14002ee0a
mov r8, qword [r14 + 0x248]
lea rax, [rbp + 0x3c0]
mov rdx, qword [r14 + 0x10]
mov r9d, 1
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r8, qword [r8 + 0x198]
call fcn.140006094
mov edi, eax
test eax, eax
je 0x14002ecea
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14002ec9f
test byte [rcx + 0x1c], 4
je 0x14002ec9f
cmp byte [rcx + 0x19], r12b
jb 0x14002ec9f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, SysAllocStringByteLen
mov r9d, edi
call fcn.140004994
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, [0x1400926e0]
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004520
test eax, eax
lea rcx, [rsp + 0x44]
mov edx, 1
mov r9d, 0xc0007d2f
cmovs rcx, rbx
mov r8d, edx
mov qword [rsp + 0x20], rcx
mov ecx, r12d
call fcn.14006a378
jmp 0x14002ee0a
mov rcx, qword [r14 + 0x48]
lea rdx, [rbp + 0x1b0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002ee81
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [str._0_n_]
lea rsi, str._0_n_
cmp rcx, rsi
je 0x14002ed62
test byte [rcx + 0x1c], 4
je 0x14002ed62
cmp byte [rcx + 0x19], r12b
jb 0x14002ed62
mov r9, qword [r14 + 0x48]
lea r8, [0x140093550]
mov rcx, qword [rcx + 0x10]
mov edx, DllRegisterServer
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
call fcn.1400374bc
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, [0x1400926e0]
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004520
test eax, eax
lea rcx, [rsp + 0x44]
mov edx, 1
mov r9d, 0xc0007d2f
cmovs rcx, rbx
mov r8d, edx
mov qword [rsp + 0x20], rcx
mov ecx, r12d
call fcn.14006a378
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002ee0a
mov rax, qword [str._0_n_]
cmp rax, rsi
je 0x14002ee0a
test byte [rax + 0x1c], 4
je 0x14002ee0a
cmp byte [rax + 0x19], r12b
jb 0x14002ee0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r9, [rbp + 0x1b0]
mov edx, DllRegisterServer
mov dword [rsp + 0x20], eax
lea r8, [0x140093550]
mov rcx, qword [rcx + 0x10]
call fcn.140004880
mov r9d, edi
mov dword [rsp + 0x40], edi
lea r8, str.0x_08X
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004520
test eax, eax
lea r8, [rsp + 0x44]
mov edx, 1
lea rax, [rbp + 0x3c0]
cmovs r8, rbx
mov r9d, 0xc0007d14
mov qword [rsp + 0x30], r8
mov ecx, r12d
mov qword [rsp + 0x28], rax
mov rax, qword [r14 + 0x48]
lea r8d, [rdx + 2]
mov qword [rsp + 0x20], rax
call fcn.14006a378
test edi, edi
je 0x14002f0e6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f0e4
mov rdx, r14
lea rcx, [rbp + 0x1b0]
call fcn.140035fe8
test eax, eax
jne 0x14002ef37
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp rcx, rax
je 0x14002eee5
test byte [rcx + 0x1c], 4
je 0x14002eee5
cmp byte [rcx + 0x19], r12b
jb 0x14002eee5
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x1b0]
mov edx, DllRegisterServer
mov dword [rsp + 0x20], esi
lea r8, [0x140093550]
call fcn.140004880
mov r9d, esi
mov dword [rsp + 0x40], esi
lea r8, str.0x_08X
mov word [rsp + 0x44], bx
mov rdx, r15
lea rcx, [rsp + 0x44]
call fcn.140004520
test eax, eax
lea rcx, [rsp + 0x44]
lea rax, [rbp + 0x1b0]
mov r9d, 0xc0007d4a
cmovs rcx, rbx
mov r8d, r12d
mov qword [rsp + 0x28], rcx
mov edx, 1
mov ecx, r12d
mov qword [rsp + 0x20], rax
call fcn.14006a378
mov r9, qword [r14 + 0x248]
xor r8d, r8d
mov rcx, qword [r14 + 0x10]
mov r9, qword [r9 + 0x198]
lea edx, [r8 + 0x40]
call fcn.140059114
test eax, eax
je 0x14002ef93
mov rcx, qword [str._0_n_]
lea r15, str._0_n_
cmp rcx, r15
je 0x14002ef9a
test byte [rcx + 0x1c], 4
je 0x14002ef9a
cmp byte [rcx + 0x19], r12b
jb 0x14002ef9a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093550]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
movzx r9d, ax
call fcn.14000c920
jmp 0x14002ef9a
lea r15, str._0_n_
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002f01c
mov rax, qword [str._0_n_]
cmp rax, r15
je 0x14002f0b9
test byte [rax + 0x1c], 4
je 0x14002f0b9
cmp byte [rax + 0x19], r12b
jb 0x14002f0b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, [rbp + 0x1b0]
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
mov qword [rsp + 0x20], rcx
lea r8, [0x140093550]
mov rcx, qword [str._0_n_]
movzx r9d, ax
mov rcx, qword [rcx + 0x10]
call fcn.140023a54
jmp 0x14002f0b9
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov r8, qword [0x1400a76e8]
cmp qword [r8 + 0x38], 0xffffffffffffffff
je 0x14002f04f
mov edx, dword [rsp + 0x7c]
mov eax, dword [rbp - 0x80]
shl rdx, 0x20
or rdx, rax
add qword [r8 + 0x38], rdx
lea rcx, [0x1400a7500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14002f0b9
mov rax, qword [str._0_n_]
cmp rax, r15
je 0x14002f0b9
test byte [rax + 0x1c], 4
je 0x14002f0b9
cmp byte [rax + 0x19], r12b
jb 0x14002f0b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140093550]
mov edx, 0x97
movzx r9d, ax
mov rcx, qword [rcx + 0x10]
call fcn.14000c920
mov rcx, qword [r14 + 0x48]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
mov r9d, 0x40007d13
mov qword [rsp + 0x20], rcx
mov r8d, r12d
mov ecx, r12d
mov edx, 3
call fcn.14006a378
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret