Function at 0x14003e5e4
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x740
mov qword [rsp + 0x198], 0xfffffffffffffffe
mov rax, qword [0x14008c110]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x180], rdx
mov r14, rcx
mov qword [rsp + 0x190], rcx
xor esi, esi
mov dword [rsp + 0x28], esi
mov rdx, rcx
lea rcx, [rsp + 0x2c0]
call fcn.14000737c
nop
movdqa xmm0, xmmword [0x140077ef0]
movdqu xmmword [rsp + 0x290], xmm0
mov word [rsp + 0x280], si
lea rdx, [rsp + 0x310]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x14003e696
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14003e6d7
lea r9, [rsp + 0x520]
xor r8d, r8d
lea rdx, [0x140077760]
lea rcx, [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14003e67a
lea rdx, [rsp + 0x520]
lea rcx, [rsp + 0x280]
call fcn.1400071f4
mov ebx, esi
test ebx, ebx
jns 0x14003e76c
mov r9d, ebx
mov r8, r14
mov edx, 0xfab
lea rcx, [0x14008de10]
call fcn.140002db8
nop
mov edi, 8
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003e74a
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
mov eax, ebx
jmp 0x14003f1b0
lea rdx, [rsp + 0x280]
mov edi, 8
cmp qword [rsp + 0x298], rdi
cmovae rdx, qword [rsp + 0x280]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14003e7d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
mov r8, r14
mov edx, 0xfab
lea rcx, [0x14008de10]
call fcn.140002db8
nop
jmp 0x14003e6fc
lea rcx, [0x140000000]
lea rax, [rcx + 0x77768]
mov qword [rsp + 0x60], rax
lea rax, [rcx + 0x76698]
mov qword [rsp + 0x70], rax
lea r12, [0x14006caa8]
mov qword [rsp + 0x118], r12
mov eax, 1
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140041378
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [0x14006cbe8]
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x14006cd88]
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [0x14006d100]
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.1400412bc
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov dword [rsp + rcx + 0x74], 6
mov eax, dword [rsp + rcx + 0x70]
and eax, 0x17
mov dword [rsp + rcx + 0x70], eax
test al, 6
jne 0x14003f1d4
lea rdx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rdx, qword [rsp + 0x280]
mov r8d, 0x23
lea rcx, [rsp + 0x78]
call fcn.1400411f4
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rdx, dword [rax + 4]
jne 0x14003e92c
mov ecx, dword [rsp + rdx + 0x70]
mov r13d, 2
or ecx, r13d
mov eax, ecx
lea r15d, [r13 + 2]
or eax, r15d
cmp qword [rsp + rdx + 0xa8], rsi
cmove ecx, eax
and ecx, 0x17
mov dword [rsp + rdx + 0x70], ecx
mov eax, dword [rsp + rdx + 0x74]
and eax, ecx
jne 0x14003f238
jmp 0x14003e952
mov rax, qword [rsp + rdx + 0xa8]
neg rax
sbb ecx, ecx
not ecx
and ecx, 4
mov dword [rsp + rdx + 0x70], ecx
test dword [rsp + rdx + 0x74], ecx
jne 0x14003f28f
mov r13d, 2
mov ebx, 0x40
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x240]
call fcn.14004e8e0
mov r8d, ebx
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x60]
call fcn.1400409d0
mov eax, 0x5a4d
cmp word [rsp + 0x240], ax
je 0x14003ea3c
mov r8, r14
mov edx, 0xfac
lea rcx, [0x14008de10]
call fcn.140002db8
nop
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003ea17
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
mov eax, 0x80070057
jmp 0x14003f1b0
mov ebx, pe_nt_image_headers64
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x310]
call fcn.14004e8e0
movsxd rax, dword [rsp + 0x27c]
mov qword [rsp + 0x40], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140040388
mov r8d, ebx
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x60]
call fcn.1400409d0
cmp dword [rsp + 0x310], 0x4550
je 0x14003eb5c
mov r8, r14
mov edx, 0xfac
lea rcx, [0x14008de10]
call fcn.140002db8
nop
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003eb37
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
mov eax, 0x80070057
jmp 0x14003f1b0
mov eax, 0x10b
cmp word [rsp + 0x328], ax
je 0x14003ec1a
mov r8, r14
mov edx, 0xfac
lea rcx, [0x14008de10]
call fcn.140002db8
nop
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003ebf5
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
mov eax, 0x80070057
jmp 0x14003f1b0
mov r8d, 1
cmp word [rsp + 0x316], r8w
je 0x14003ecda
mov r8, r14
mov edx, 0xfac
lea rcx, [0x14008de10]
call fcn.140002db8
nop
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003ecb5
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
mov eax, 0x80070057
jmp 0x14003f1b0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x2e0], xmm0
movups xmmword [rsp + 0x2f0], xmm0
mov qword [rsp + 0x300], rax
lea r8d, [rax + 0x28]
lea rdx, [rsp + 0x2e0]
lea rcx, [rsp + 0x60]
call fcn.1400409d0
mov ecx, dword [rsp + 0x348]
mov eax, dword [rsp + 0x2f0]
dec eax
add eax, ecx
cdq
idiv ecx
imul eax, ecx
mov ebx, dword [rsp + 0x3f8]
add ebx, eax
mov dword [rsp + 0x398], ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x218], xmm0
movups xmmword [rsp + 0x228], xmm0
mov qword [rsp + 0x238], rax
lea r8, str..rsrc
mov rdx, rdi
lea rcx, [rsp + 0x218]
call fcn.1400516bc
mov dword [rsp + 0x224], ebx
mov edx, dword [rsp + 0x2f4]
add edx, dword [rsp + 0x2f0]
mov dword [rsp + 0x22c], edx
mov dword [rsp + 0x23c], 0x40000040
mov eax, edx
mov qword [rsp + 0x40], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400407fc
xorps xmm0, xmm0
movups xmmword [rsp + 0x2a0], xmm0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x2a8], 4
mov ebx, 1
mov word [rsp + 0x2ae], bx
lea r15d, [rbx + 0xf]
mov r8d, r15d
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x2c], 0x80000018
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov r8d, r15d
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov word [rsp + 0x28], bx
mov dword [rsp + 0x2c], 0x80000030
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov r8d, r15d
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov eax, 0x409
mov word [rsp + 0x28], ax
mov dword [rsp + 0x2c], 0x48
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov qword [rsp + 0x2b8], 0x4e4
mov eax, dword [rsp + 0x224]
add eax, 0x58
mov dword [rsp + 0x2b0], eax
mov ebx, dword [rsp + 0x30]
mov dword [rsp + 0x2b4], ebx
mov r8d, r15d
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov r8d, ebx
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
add ebx, 0x58
mov r8d, ebx
mov dword [rsp + 0x220], ebx
mov ecx, dword [rsp + 0x34c]
lea eax, [rcx - 1]
add eax, ebx
cdq
idiv ecx
imul eax, ecx
mov dword [rsp + 0x228], eax
mov r15d, ebx
cmp r15d, eax
jae 0x14003ef45
mov byte [rsp + 0x20], sil
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov eax, 1
add ebx, eax
add r15d, eax
mov eax, dword [rsp + 0x228]
mov r8d, dword [rsp + 0x220]
jmp 0x14003ef0b
mov dword [rsp + 0x330], eax
mov dword [rsp + 0x39c], r8d
mov word [rsp + 0x316], r13w
mov ecx, dword [rsp + 0x348]
dec eax
add eax, ecx
cdq
idiv ecx
imul eax, ecx
add dword [rsp + 0x360], eax
movsxd rax, dword [rsp + 0x27c]
mov qword [rsp + 0x40], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140040388
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
mov ebx, 0x28
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140040638
mov r8d, ebx
lea rdx, [rsp + 0x218]
lea rcx, [rsp + 0x70]
call fcn.1400404d0
lea rcx, [rsp + 0x60]
call fcn.14003f5e4
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
mov r8d, 3
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003f081
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
mov r8, r14
mov edx, 0xfab
lea rcx, [0x14008de10]
call fcn.140002db8
nop
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
jmp 0x14003e7d2
lea rcx, [rsp + 0x118]
call fcn.14003f6d8
mov qword [rsp + 0x118], r12
lea rcx, [rsp + 0x118]
call fcn.14000ab10
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14003f0f2
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], rdi
cmovae rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x280]
call fcn.1400022c0
nop
lea rcx, [rsp + 0x2c0]
call fcn.1400022c0
xor eax, eax
jmp 0x14003f1b0
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.14004d060
add rsp, 0x740
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r15d, 4
test r15b, al
je 0x14003f1e8
lea rbx, str.ios_base::badbit_set
jmp 0x14003f203
mov r13d, 2
test r13b, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
lea rcx, [rsp + 0x2b0]
call fcn.1400097d4
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x1a0]
call fcn.14000aa04
lea rdx, [0x140089620]
lea rcx, [rsp + 0x1a0]
call fcn.14004f070
nop
test r15b, al
je 0x14003f246
lea rbx, str.ios_base::badbit_set
jmp 0x14003f25b
test r13b, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
lea rcx, [rsp + 0x180]
call fcn.1400097d4
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x1c8]
call fcn.14000aa04
lea rdx, [0x140089620]
lea rcx, [rsp + 0x1c8]
call fcn.14004f070
lea rcx, [rsp + 0x180]
call fcn.1400097d4
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x1f0]
call fcn.14000aa04
lea rdx, [0x140089620]
lea rcx, [rsp + 0x1f0]
call fcn.14004f070
int3