Function at 0x14000a490
Capabilities:
Create directory
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
movaps xmmword [rsp + 0x2d0], xmm6
mov rdi, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rcx, qword [r8 + 8]
mov r12b, 1
test rcx, rcx
je 0x14000a510
mov rdx, qword [r14 + 8]
test rdx, rdx
jne 0x14000a4f8
mov rax, qword [r14]
movzx eax, word [rcx + rax*2]
cmp ax, 0x5c
setne cl
test ax, ax
setne r12b
and r12b, cl
jmp 0x14000a510
mov r8, qword [r14]
cmp r8, qword [r13]
ja 0x14000a510
call fcn.140017964
test eax, eax
jne 0x14000a510
mov rcx, qword [r13 + 8]
jmp 0x14000a4de
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
je 0x14000a5a9
mov ecx, eax
and ecx, 0x10
je 0x14000a5a9
test eax, 0x400
jne 0x14000a5a9
mov eax, dword [rsi]
add eax, 0xffffffff
cmp eax, 1
jbe 0x14000a5a9
mov ebx, dword [rsp + 0x350]
mov rcx, rsi
mov rdx, r14
mov r8, rdi
call fcn.14000afe0
test eax, eax
je 0x14000a647
cmp ebx, 1
jne 0x14000a563
cmp eax, 2
je 0x14000a647
xor ecx, ecx
cmp eax, 1
mov ebp, 0x80004005
cmove ebp, ecx
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000a5a0
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
setne cl
test al, 0x10
je 0x14000a5a0
cmp eax, 0xffffffff
je 0x14000a5a0
mov edx, dword [rsi]
cmp edx, 2
je 0x14000a5a0
cmp edx, 1
je 0x14000a5a0
shr eax, 0xa
and al, cl
je 0x14000a85d
test ebp, ebp
mov eax, 0x80004005
jmp 0x14000a616
mov rcx, rsi
mov rdx, rdi
call fcn.14000b400
mov ebx, eax
mov ecx, dword [rsi + 4]
cmp ecx, 0xffffffff
setne dl
cmp ecx, 0xffffffff
je 0x14000a5de
mov eax, dword [rsi]
cmp eax, 2
je 0x14000a5de
cmp eax, 1
je 0x14000a5de
shr ecx, 0xa
xor eax, eax
mov edi, 0
and cl, dl
je 0x14000a5ef
mov rcx, r14
mov rdx, rsi
call fcn.14000b2e0
test eax, eax
setns dil
test dil, dil
mov ebp, ebx
cmovne ebp, eax
test ebx, ebx
cmovns ebp, eax
test eax, eax
cmovs ebp, eax
or r12b, dil
jne 0x14000a619
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
call fcn.14000a0e0
test ebp, ebp
cmovns ebp, eax
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1400193c0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x2d0]
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0xa0]
mov rdx, r14
call fcn.14000a380
test eax, eax
js 0x14000a6db
mov r15, qword [rsp + 0xa0]
test r15, r15
je 0x14000a6db
mov rcx, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
lea rax, [r15 - 1]
jmp 0x14000a6a4
add rax, 0xffffffffffffffff
movzx edx, word [rbx + rax*2]
cmp dx, 0x5c
je 0x14000a6b8
cmp dx, 0x2f
jne 0x14000a81e
cmp r15, rax
jb 0x14000a6a0
mov word [rbx + rax*2], 0
mov rcx, rax
mov r15, rax
test rax, rax
jne 0x14000a6a0
mov qword [rsp + 0xa0], rax
jmp 0x14000a817
test eax, eax
js 0x14000a817
mov rbx, qword [rsp + 0xa8]
xor ebp, ebp
mov ecx, 0x20a
call fcn.14000e39c
mov r15, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000ff90
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], 0
mov word [r15], 0
mov rcx, rbx
mov rdx, rbp
mov r8, r15
call fcn.14000e230
mov ebp, 0x80004005
test eax, eax
je 0x14000aa79
mov rcx, r15
call fcn.1400174c8
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14000aa79
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a76d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, qword [r14 + 8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000aa65
lea rdx, [rdi + 0xc8]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000aa79
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.14000ae70
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000ab76
mov qword [rsp + 0x28], r15
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
setne dl
test al, 0x10
je 0x14000a80d
cmp eax, 0xffffffff
je 0x14000a80d
mov ebx, dword [rsi]
cmp ebx, 2
je 0x14000a80d
cmp ebx, 1
je 0x14000a80d
shr eax, 0xa
and al, dl
mov r15, qword [rsp + 0x28]
jne 0x14000ab7d
mov rcx, rsi
mov rdx, r14
mov r8, rdi
call fcn.14000afe0
cmp eax, 1
je 0x14000ab9a
mov rcx, qword [rsi + 8]
mov r15, qword [rsp + 0x28]
jmp 0x14000ab7d
mov ebp, 0x80004005
jmp 0x14000a856
mov qword [rsp + 0xa0], rcx
mov rcx, rbx
mov dx, 0x2f
call fcn.1400101b4
mov rbp, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.1400101b4
cmp rbp, rax
cmova rax, rbp
mov ebp, 0x80004005
test rax, rax
jne 0x14000ab0a
xor ebx, ebx
jmp 0x14000aa83
mov rdx, qword [r14 + 8]
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call fcn.14000e000
call fcn.140014984
mov dword [rax], 0
mov rcx, rbx
call fcn.14000e070
test rax, rax
je 0x14000aa2d
mov rbx, rax
lea r12, [rsp + 0xb0]
xorps xmm6, xmm6
mov rcx, rbx
lea rdx, [0x140031444]
call fcn.140017474
test eax, eax
je 0x14000a8d8
mov rcx, rbx
lea rdx, [0x140031442]
call fcn.140017474
test eax, eax
je 0x14000a8d8
cmp qword [rsi + 0x10], 0
je 0x14000a8f3
mov rdx, qword [rsi + 0x18]
mov rcx, rbx
call fcn.140017474
test eax, eax
jne 0x14000a8f3
mov r15d, ebp
mov rcx, r12
call fcn.14000e070
mov rbx, rax
mov ebp, r15d
test rax, rax
jne 0x14000a89b
jmp 0x14000aa30
mov ecx, 0x20a
call fcn.14000e39c
mov r15, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000ff90
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xa0], 0
mov word [r15], 0
mov r9, qword [r14 + 8]
mov qword [rsp + 0x20], rbx
mov edx, 0x105
lea rcx, [rsp + 0xa0]
lea r8, [0x140030fa4]
call fcn.14000b2a0
cmp qword [rsp + 0xa0], 0
jne 0x14000a98c
test ebp, ebp
mov eax, 0x8007006f
cmovns ebp, eax
mov r15d, ebp
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x14000a8db
call fcn.14000e3a4
jmp 0x14000a8db
movabs rax, 0xffffffff00000002
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
lea rax, [rsp + 0x70]
movups xmmword [rax], xmm6
lea r15, [rsp + 0x60]
mov rcx, r15
lea rbx, [rsp + 0xa0]
mov rdx, rbx
xor r8d, r8d
call fcn.14000ae70
mov eax, dword [rsp + 0x350]
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.14000a490
mov r15d, eax
test ebp, ebp
cmovs r15d, ebp
call fcn.140014984
mov dword [rax], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x14000aa0f
call fcn.14000e3a4
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a965
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a965
mov r15d, ebp
call fcn.140014984
cmp dword [rax], 0
mov ebp, 0x80004005
cmove ebp, r15d
test r15d, r15d
cmovs ebp, r15d
mov rcx, qword [rsp + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14000a619
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000a619
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
xor ebx, ebx
mov rcx, r15
call fcn.14000e3a4
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x98], 0
test rcx, rcx
je 0x14000aaa1
call fcn.14000e3a4
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x14000aabf
call fcn.14000e3a4
test bl, bl
setne al
or r12b, al
jne 0x14000aae1
mov rcx, r14
mov rdx, rsi
mov r8, r14
call fcn.14000a0e0
cmp qword [r14], 0
je 0x14000a619
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x14000a570
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.14000ae70
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x14000a577
jmp 0x14000a5a0
add rax, 2
lea rcx, [rsp + 0x90]
mov rdx, rax
call fcn.140009420
test eax, eax
js 0x14000a856
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14000a856
lea rcx, [rax + 1]
cmp r15, rcx
jb 0x14000a856
not rax
add rax, r15
cmp r15, rax
jb 0x14000ab60
mov qword [rsp + 0xa0], rax
mov word [rbx + rax*2], 0
mov r15, rax
test r15, r15
je 0x14000a856
mov rbp, qword [rsp + 0x98]
jmp 0x14000a6ed
mov rcx, 0xffffffffffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000ab8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
jmp 0x14000aa79
movabs rax, 0xffffffff00000002
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x80]
xor r8d, r8d
call fcn.14000ae70
mov ebp, 0x80004005
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14000ae33
mov eax, dword [rsp + 0x64]
cmp eax, 0xffffffff
setne cl
test al, 0x10
je 0x14000ae33
cmp eax, 0xffffffff
je 0x14000ae33
mov edx, dword [rsp + 0x60]
cmp edx, 2
je 0x14000ae33
cmp edx, 1
je 0x14000ae33
shr eax, 0xa
and al, cl
jne 0x14000ae33
mov ecx, 0x20a
call fcn.14000e39c
mov rbx, rax
lea rcx, [rax + 2]
xor r15d, r15d
mov r8d, 0x208
xor edx, edx
call fcn.14000ff90
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], 0
mov word [rbx], 0
mov ecx, 0x20a
call fcn.14000e39c
mov rbx, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000ff90
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], 0
mov word [rbx], 0
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, qword [rsp + 0x28]
call fcn.14000e000
call fcn.140014984
mov dword [rax], 0
mov rcx, rbx
call fcn.14000e070
test rax, rax
je 0x14000adbe
mov rbp, rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r15d, r15d
lea rbx, [rsp + 0xb0]
jmp 0x14000ad1e
mov qword [rsp + 0x20], rbp
mov edx, 0x105
lea rcx, [rsp + 0x50]
lea r8, [0x140030fa4]
mov r9, qword [rsp + 0x28]
call fcn.14000b2a0
cmp qword [rsp + 0x50], 0
jne 0x14000ad62
test r15d, r15d
mov eax, 0x8007006f
cmovns r15d, eax
mov rcx, rbx
call fcn.14000e070
mov rbp, rax
test rax, rax
je 0x14000adbe
mov rcx, rbp
lea rdx, [0x140031444]
call fcn.140017474
test eax, eax
je 0x14000ad0a
mov rcx, rbp
lea rdx, [0x140031442]
call fcn.140017474
test eax, eax
je 0x14000ad0a
cmp qword [rsp + 0x38], 0
je 0x14000acd6
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
call fcn.140017474
test eax, eax
je 0x14000ad0a
jmp 0x14000acd6
mov r9, qword [r14 + 8]
mov qword [rsp + 0x20], rbp
mov edx, 0x105
lea rcx, [rsp + 0x40]
lea r8, [0x140030fa4]
call fcn.14000b2a0
cmp qword [rsp + 0x40], 0
je 0x14000acfe
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8, rdi
call fcn.14000b470
test r15d, r15d
mov ecx, eax
cmovs ecx, r15d
test eax, eax
cmovs r15d, ecx
call fcn.140014984
mov dword [rax], 0
jmp 0x14000ad0a
call fcn.140014984
cmp dword [rax], 0
mov ebx, 0x80004005
cmove ebx, r15d
test r15d, r15d
cmovs ebx, r15d
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x60]
call fcn.14000b2e0
mov ebp, eax
test ebx, ebx
cmovs ebp, ebx
mov rcx, qword [rsp + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14000ae03
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x14000ae1b
call fcn.14000e3a4
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
test rcx, rcx
je 0x14000ae33
call fcn.14000e3a4
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x14000ae4b
call fcn.14000e3a4
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000ae60
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov r15, qword [rsp + 0x28]
jmp 0x14000aa7b