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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x978]
sub rsp, 0xa78
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rbp + 0x960], rax
mov rax, qword [rbp + 0x9e8]
mov r12, r8
mov r15, qword [rbp + 0x9d0]
mov rbx, qword [rbp + 0x9e0]
mov r13, qword [rbp + 0x9d8]
mov qword [rbp - 0x78], r8
mov r8, rdx
mov dword [rsp + 0x4c], ecx
mov rdx, r9
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rax
call fcn.180002464
call fcn.180002a78
mov edi, eax
test eax, eax
jne 0x180003a0d
lea rax, [rbp + 0x750]
mov qword [rsp + 0xa70], r14
mov edx, 0x80000000
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 3]
lea r8d, [rdi + 1]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LZCreateFileW]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
mov r14d, eax
test eax, eax
jns 0x180003453
mov edi, 0x10000
jmp 0x1800039fe
xor ecx, ecx
mov qword [rsp + 0xab0], rsi
xor edx, edx
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x54]
mov esi, 0x104
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x750]
mov qword [rsp + 0x30], rcx
lea r9d, [rcx - 1]
lea rax, [rbp + 0x220]
mov dword [rsp + 0x28], esi
lea ecx, [rdx + 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 0x1800034d6
cmp eax, 0x80
jg 0x1800034d6
cmp dword [rsp + 0x54], 0
jne 0x1800034d6
lea rcx, [rbp + 0x220]
call fcn.180002cfc
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1800034d6
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_LZCloseFile]
nop dword [rax + rax]
mov r8, r12
lea rcx, [rbp + 0x330]
mov rdx, r15
call fcn.180002464
lea r8, [rbp + 0x330]
mov qword [rsp + 0x78], rax
mov rdx, rsi
lea rcx, [rbp + 0x10]
mov r14, rax
call fcn.18000252c
lea rcx, [rbp + 0x10]
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 0x18000352e
test al, 1
je 0x18000352e
mov edi, 0x40
jmp 0x1800039df
mov r15d, dword [rsp + 0x4c]
and r15d, 1
je 0x18000356c
cmp word [rbx], 0
je 0x18000356c
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x10]
mov r8, rbx
call fcn.180002464
lea rcx, [rbp + 0x10]
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 case.default.0x1800036ba
movzx eax, r14w
lea r8, str.temp._03X
sub rsi, rax
lea r14, [rbp + 0x10]
xor r9d, r9d
mov rdx, rsi
xor ebx, ebx
lea r14, [r14 + rax*2]
mov rcx, r14
call fcn.18000330c
lea rcx, [rbp + 0x10]
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 0x1800035e7
nop word [rax + rax]
cmp ebx, 0xfff
jg 0x180003609
inc ebx
lea r8, str.temp._03X
mov r9d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.18000330c
lea rcx, [rbp + 0x10]
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 0x1800035b0
cmp dword [rsp + 0x40], 0
je 0x180003613
lea r9, [rbp - 0x70]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x220]
call fcn.180002814
mov esi, eax
jmp 0x18000369f
mov edi, 0x800
jmp 0x1800039df
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x10]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x18000366d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.18000323c
mov edi, 0x800
or edi, eax
jmp 0x1800039e6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LZInit]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
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.0x1800036ba
lea rdx, [0x180000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x3a30]
add rcx, rdx
jmp rcx
mov edi, 0x10000
jmp 0x1800039cf
mov edi, 0x100
jmp 0x1800039cf
mov edi, 0x8000
jmp 0x1800039cf
test r12w, r12w
jne 0x1800038f5
test r15d, r15d
jne 0x180003836
lea rcx, [rbp + 0x330]
call fcn.180003260
mov r15, rax
test rax, rax
je 0x180003836
lea rcx, [rbp + 0x10]
call fcn.180003260
mov r14, rax
test rax, rax
jne 0x180003722
lea edi, [rax + 6]
jmp 0x180003827
mov eax, dword [r15 + 0x30]
cmp eax, dword [r14 + 0x30]
ja 0x180003738
jne 0x18000373d
mov eax, dword [r14 + 0x34]
cmp dword [r15 + 0x34], eax
jbe 0x18000373d
mov edi, 6
mov eax, dword [r14 + 0x4c]
cmp dword [r15 + 0x4c], eax
jne 0x180003751
mov eax, dword [r14 + 0x50]
cmp dword [r15 + 0x50], eax
je 0x180003754
or edi, 0x22
lea r9, [rsp + 0x44]
mov rcx, r15
lea r8, [rsp + 0x68]
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 0x180003818
lea r9, [rsp + 0x48]
mov rcx, r14
lea r8, [rsp + 0x70]
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 0x180003818
mov esi, dword [rsp + 0x44]
xor r11d, r11d
mov r8d, dword [rsp + 0x48]
shr esi, 2
shr r8d, 2
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x48], r8d
test esi, esi
je 0x180003818
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
nop word [rax + rax]
xor ecx, ecx
test r8d, r8d
je 0x18000380d
movzx r10d, word [r12 + r11*4]
lea r9, [r12 + r11*4]
cmp r10w, word [rbx + rcx*4]
jne 0x180003806
movzx edx, word [r9 + 2]
test dx, dx
jne 0x1800037ff
mov edx, 0x4b0
cmp word [rbx + rcx*4 + 2], dx
jne 0x180003810
jmp 0x180003806
cmp dx, word [rbx + rcx*4 + 2]
je 0x180003810
inc ecx
cmp ecx, r8d
jb 0x1800037e0
or edi, 0xa
inc r11d
cmp r11d, esi
jb 0x1800037d0
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
lea rcx, [rbp + 0x330]
call fcn.1800023f4
test eax, eax
je 0x18000384a
bts edi, 7
mov esi, edi
test edi, edi
jne 0x180003889
lea rcx, [rbp + 0x330]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1800038f5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.18000323c
mov edi, eax
bts edi, 0xc
jmp 0x1800039cf
movzx eax, word [rsp + 0x78]
lea rdi, [rbp + 0x10]
lea rdi, [rdi + rax*2]
mov rcx, rdi
call qword [sym.imp.KERNELBASE.dll_lstrlenW]
nop dword [rax + rax]
mov r14, qword [rbp - 0x80]
mov ebx, eax
mov eax, dword [r14]
cmp eax, ebx
jbe 0x1800038d3
mov rcx, qword [rsp + 0x58]
mov edx, eax
mov r8, rdi
call fcn.18000252c
lea eax, [rbx + 1]
mov edi, 1
mov dword [r14], eax
or edi, esi
jmp 0x1800039df
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea eax, [rbx + 1]
mov edi, 0x40000
mov dword [r14], eax
or edi, esi
jmp 0x1800039df
test byte [rsp + 0x4c], 2
jne 0x18000399b
test r13, r13
je 0x18000399b
cmp word [r13], 0
je 0x18000399b
mov rdx, qword [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNELBASE.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x18000399b
mov r8, qword [rbp - 0x78]
lea rcx, [rbp + 0x540]
mov rdx, r13
call fcn.180002464
lea rcx, [rbp + 0x540]
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 0x18000399b
lea rcx, [rbp + 0x540]
call fcn.1800023f4
test eax, eax
jne 0x180003982
lea rcx, [rbp + 0x540]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x18000399b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.18000323c
mov edi, eax
bts edi, 0xe
lea rdx, [rbp + 0x330]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1800039df
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.18000323c
bts eax, 0xd
or edi, eax
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
cmp dword [rsp + 0x40], 0
jne 0x1800039f6
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LZCloseFile]
nop dword [rax + rax]
mov rsi, qword [rsp + 0xab0]
call fcn.18000311c
mov r14, qword [rsp + 0xa70]
mov eax, edi
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.180001650
add rsp, 0xa78
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret