Function at 0x180003320
Capabilities:
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x998]
sub rsp, 0xa98
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rax, qword [rbp + 0x9f0]
mov r12, qword [rbp + 0x9e0]
mov rbx, qword [rbp + 0x9e8]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x9f8]
mov qword [rbp - 0x80], r8
mov r8, rdx
mov dword [rsp + 0x50], ecx
mov rdx, r9
lea rcx, [rbp + 0x20]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x58], rbx
call fcn.1800023f4
call fcn.180002a10
mov edi, eax
test eax, eax
jne 0x1800039bc
mov qword [rsp + 0xa90], r13
lea rax, [rbp + 0x760]
mov r13d, 1
mov qword [rsp + 0xa88], r14
mov r8d, r13d
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 3]
mov edx, 0x80000000
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LZCreateFileW]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jns 0x1800033ee
mov edi, 0x10000
jmp 0x1800039a5
mov qword [rsp + 0xac0], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x760]
lea rax, [rbp + 0x230]
mov qword [rsp + 0xa80], r15
xor r15d, r15d
mov esi, 0x104
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], esi
mov ecx, r13d
mov dword [rsp + 0x44], r15d
lea r9d, [r15 - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x18000347e
cmp eax, 0x80
jg 0x18000347e
cmp dword [rsp + 0x54], r15d
jne 0x18000347e
lea rcx, [rbp + 0x230]
call fcn.180002c88
mov dword [rsp + 0x44], eax
mov r15d, eax
test eax, eax
je 0x18000347e
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LZCloseFile]
nop dword [rax + rax]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x340]
mov rdx, r12
call fcn.1800023f4
lea r8, [rbp + 0x340]
mov qword [rsp + 0x68], rax
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.1800024d4
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r12d, eax
shr r12d, 0x10
test r12w, r12w
jne 0x1800034d5
test r13b, al
je 0x1800034d5
mov edi, 0x40
jmp 0x180003981
mov r14d, dword [rsp + 0x50]
and r14d, r13d
je 0x180003517
mov rax, qword [rsp + 0x70]
cmp word [rax], 0
je 0x180003517
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0x20]
mov r8, rax
call fcn.1800023f4
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
shr eax, 0x10
test ax, ax
je 0x180003692
movzx eax, word [rsp + 0x68]
lea r15, [rbp + 0x20]
sub rsi, rax
lea r8, str.temp._03X
xor r9d, r9d
mov rdx, rsi
xor ebx, ebx
lea r15, [r15 + rax*2]
mov rcx, r15
call fcn.18000328c
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
shr eax, 0x10
test ax, ax
jne 0x18000358d
cmp ebx, 0xfff
jg 0x1800035b2
inc ebx
lea r8, str.temp._03X
mov r9d, ebx
mov rdx, rsi
mov rcx, r15
call fcn.18000328c
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
shr eax, 0x10
test ax, ax
je 0x180003556
mov r15d, dword [rsp + 0x44]
test r15d, r15d
je 0x1800035c1
lea r9, [rbp - 0x60]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x230]
call fcn.1800027bc
mov esi, eax
jmp 0x18000364e
mov r15d, dword [rsp + 0x44]
mov edi, 0x800
jmp 0x18000397c
mov qword [rsp + 0x30], 0
lea rcx, [rbp + 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], r13d
mov edx, 0xc0000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x18000361c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1800031bc
mov r14d, dword [rsp + 0x40]
mov edi, 0x800
or edi, eax
jmp 0x180003986
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LZInit]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x40]
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LZCopy]
nop dword [rax + rax]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LZClose]
nop dword [rax + rax]
lea eax, [rsi + 8]
cmp eax, 7
ja case.default.0x180003669
lea rdx, [0x180000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x39dc]
add rcx, rdx
jmp rcx
mov edi, 0x10000
jmp 0x18000396c
mov edi, 0x100
jmp 0x18000396c
mov edi, 0x8000
jmp 0x18000396c
mov rbx, qword [rsp + 0x58]
test r12w, r12w
jne 0x180003894
test r14d, r14d
jne 0x1800037e9
lea rcx, [rbp + 0x340]
call fcn.1800031e0
mov rsi, rax
test rax, rax
je 0x1800037e9
lea rcx, [rbp + 0x20]
call fcn.1800031e0
mov rbx, rax
test rax, rax
jne 0x1800036d6
lea edi, [rax + 6]
jmp 0x1800037d5
mov eax, dword [rsi + 0x30]
cmp eax, dword [rbx + 0x30]
ja 0x1800036e8
jne 0x1800036ed
mov eax, dword [rbx + 0x34]
cmp dword [rsi + 0x34], eax
jbe 0x1800036ed
mov edi, 6
mov eax, dword [rbx + 0x4c]
cmp dword [rsi + 0x4c], eax
jne 0x1800036fd
mov eax, dword [rbx + 0x50]
cmp dword [rsi + 0x50], eax
je 0x180003700
or edi, 0x22
lea r9, [rsp + 0x48]
mov rcx, rsi
lea r8, [rsp + 0x60]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x1800037c6
lea r9, [rsp + 0x4c]
mov rcx, rbx
lea r8, [rbp - 0x78]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x1800037c6
mov ecx, dword [rsp + 0x48]
xor r9d, r9d
mov edx, dword [rsp + 0x4c]
shr ecx, 2
shr edx, 2
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], edx
test ecx, ecx
je 0x1800037c6
mov r15, qword [rsp + 0x60]
mov r12, qword [rbp - 0x78]
xor r8d, r8d
test edx, edx
je 0x1800037b6
movzx r11d, word [r15 + r9*4]
lea r14, [r15 + r9*4]
cmp r11w, word [r12 + r8*4]
jne 0x1800037ae
movzx r10d, word [r14 + 2]
test r10w, r10w
jne 0x1800037a6
mov r15d, 0x4b0
cmp word [r12 + r8*4 + 2], r15w
mov r15, qword [rsp + 0x60]
jne 0x1800037b9
cmp r10w, word [r12 + r8*4 + 2]
je 0x1800037b9
inc r8d
cmp r8d, edx
jb 0x180003781
or edi, 0xa
inc r9d
cmp r9d, ecx
jb 0x180003771
mov r15d, dword [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
lea rcx, [rbp + 0x340]
call fcn.180002384
test eax, eax
je 0x1800037fd
bts edi, 7
test edi, edi
jne 0x180003836
lea rcx, [rbp + 0x340]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x180003894
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1800031bc
mov edi, eax
bts edi, 0xc
jmp 0x18000396c
movzx eax, word [rsp + 0x68]
lea rsi, [rbp + 0x20]
lea rsi, [rsi + rax*2]
mov rcx, rsi
call qword [sym.imp.KERNELBASE.dll_lstrlenW]
nop dword [rax + rax]
mov r14, qword [rbp - 0x70]
mov ebx, eax
mov eax, dword [r14]
cmp eax, ebx
jbe 0x180003870
mov rcx, qword [rsp + 0x70]
mov edx, eax
mov r8, rsi
call fcn.1800024d4
jmp 0x180003886
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov r13d, 0x40000
lea eax, [rbx + 1]
or edi, r13d
mov dword [r14], eax
jmp 0x18000397c
test byte [rsp + 0x50], 2
jne 0x180003938
test rbx, rbx
je 0x180003938
cmp word [rbx], 0
je 0x180003938
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNELBASE.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x180003938
mov r8, qword [rbp - 0x80]
lea rcx, [rbp + 0x550]
mov rdx, rbx
call fcn.1800023f4
lea rcx, [rbp + 0x550]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
shr eax, 0x10
test ax, ax
jne 0x180003938
lea rcx, [rbp + 0x550]
call fcn.180002384
test eax, eax
jne 0x18000391f
lea rcx, [rbp + 0x550]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x180003938
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1800031bc
mov edi, eax
bts edi, 0xe
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x18000397c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.1800031bc
bts eax, 0xd
or edi, eax
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov r14d, dword [rsp + 0x40]
test r15d, r15d
jne 0x180003995
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LZCloseFile]
nop dword [rax + rax]
mov rsi, qword [rsp + 0xac0]
mov r15, qword [rsp + 0xa80]
call fcn.1800030b8
mov r14, qword [rsp + 0xa88]
mov eax, edi
mov r13, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.180001630
add rsp, 0xa98
pop r12
pop rdi
pop rbx
pop rbp
ret