Function at 0x140009350
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 [0x140037010]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rcx, qword [r8 + 8]
mov r12b, 1
test rcx, rcx
je 0x1400093d0
mov rdx, qword [r14 + 8]
test rdx, rdx
jne 0x1400093b8
mov rax, qword [r14]
movzx eax, word [rcx + rax*2]
cmp ax, 0x5c
setne cl
test ax, ax
setne r12b
and r12b, cl
jmp 0x1400093d0
mov r8, qword [r14]
cmp r8, qword [r13]
ja 0x1400093d0
call fcn.1400176f8
test eax, eax
jne 0x1400093d0
mov rcx, qword [r13 + 8]
jmp 0x14000939e
mov eax, dword [rsi + 4]
test al, 0x10
je 0x140009470
cmp eax, 0xffffffff
je 0x140009470
bt eax, 0xa
jb 0x140009470
mov ecx, dword [rsi]
cmp ecx, 1
je 0x140009470
cmp eax, 0xffffffff
je 0x140009470
cmp ecx, 2
je 0x140009470
mov ebx, dword [rsp + 0x350]
mov rcx, rsi
mov rdx, r14
mov r8, rdi
call fcn.140009e80
test eax, eax
je 0x14000950e
cmp ebx, 1
jne 0x14000942a
cmp eax, 2
je 0x14000950e
xor ecx, ecx
cmp eax, 1
mov ebp, 0x80004005
cmove ebp, ecx
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x140009467
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
setne cl
test al, 0x10
je 0x140009467
cmp eax, 0xffffffff
je 0x140009467
mov edx, dword [rsi]
cmp edx, 2
je 0x140009467
cmp edx, 1
je 0x140009467
shr eax, 0xa
and al, cl
je 0x140009986
test ebp, ebp
mov eax, 0x80004005
jmp 0x1400094dd
mov rcx, rsi
mov rdx, rdi
call fcn.14000a280
mov ebx, eax
mov ecx, dword [rsi + 4]
cmp ecx, 0xffffffff
setne dl
cmp ecx, 0xffffffff
je 0x1400094a5
mov eax, dword [rsi]
cmp eax, 2
je 0x1400094a5
cmp eax, 1
je 0x1400094a5
shr ecx, 0xa
xor eax, eax
mov edi, 0
and cl, dl
je 0x1400094b6
mov rcx, r14
mov rdx, rsi
call fcn.14000a170
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 0x1400094e0
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
call fcn.140008fc0
test ebp, ebp
cmovns ebp, eax
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.140019150
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
lea rcx, [rsp + 0xa0]
movaps xmmword [rcx], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov rdx, r14
call fcn.140009260
test eax, eax
js 0x140009583
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140009583
mov rbx, qword [rsp + 0xa8]
dec rcx
movzx eax, word [rbx + rcx*2]
cmp ax, 0x5c
je 0x14000955c
cmp ax, 0x2f
jne 0x1400098de
cmp qword [rsp + 0xa0], rcx
jb 0x140009545
mov qword [rsp + 0xa0], rcx
test rbx, rbx
je 0x140009579
mov word [rbx + rcx*2], 0
test rcx, rcx
jne 0x14000953d
jmp 0x1400098d4
xor ebx, ebx
test eax, eax
js 0x1400098d4
mov ecx, 0x20a
call fcn.14000e284
mov rbp, rax
lea rcx, [rax + 2]
xor r15d, r15d
mov r8d, 0x208
xor edx, edx
call fcn.14000feb0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], 0
mov word [rbp], 0
mov rcx, qword [rsp + 0xa8]
mov rdx, rbx
mov rbx, rbp
mov r8, rbp
call fcn.14000d290
mov ebp, 0x80004005
test eax, eax
je 0x140009bc9
mov rcx, rbx
call fcn.14001725c
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140009bc6
mov rcx, qword [rsi + 8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009618
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, qword [r14 + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140009b86
lea rdx, [rdi + 0xc8]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140009bc6
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140009d00
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140009b9c
mov eax, dword [rsi + 4]
cmp eax, 0xffffffff
setne dl
test al, 0x10
je 0x140009bae
cmp eax, 0xffffffff
je 0x140009bae
mov qword [rsp + 0x28], rbx
mov ebx, dword [rsi]
cmp ebx, 2
je 0x140009ba9
cmp ebx, 1
je 0x140009ba9
shr eax, 0xa
and al, dl
mov rbx, qword [rsp + 0x28]
jne 0x140009bae
mov rcx, rsi
mov rdx, r14
mov r8, rdi
call fcn.140009e80
cmp eax, 1
jne 0x140009ba5
movabs rax, 0xffffffff00000002
lea rbx, [rsp + 0x60]
mov qword [rbx], rax
mov qword [rbx + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
lea rdx, [rsp + 0x80]
mov rcx, rbx
xor r8d, r8d
call fcn.140009d00
mov ebp, 0x80004005
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x140009cc3
mov eax, dword [rsp + 0x64]
cmp eax, 0xffffffff
setne cl
test al, 0x10
je 0x140009cc3
cmp eax, 0xffffffff
je 0x140009cc3
mov edx, dword [rsp + 0x60]
cmp edx, 2
je 0x140009cc3
cmp edx, 1
je 0x140009cc3
shr eax, 0xa
and al, cl
jne 0x140009cc3
mov ecx, 0x20a
call fcn.14000e284
mov rbx, rax
lea rcx, [rax + 2]
xor ebp, ebp
mov r8d, 0x208
xor edx, edx
call fcn.14000feb0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbp
mov word [rbx], bp
mov ecx, 0x20a
call fcn.14000e284
mov rbx, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000feb0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbp
xor r15d, r15d
mov word [rbx], bp
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, qword [rsp + 0x28]
call fcn.14000d060
call fcn.1400148a4
mov dword [rax], 0
mov rcx, rbx
call fcn.14000d0d0
test rax, rax
je 0x140009c4e
mov rbx, 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 rbp, [rsp + 0xb0]
mov rcx, rbx
lea rdx, [0x1400304e0]
call fcn.140017208
test eax, eax
je 0x140009831
mov rcx, rbx
lea rdx, [0x1400304de]
call fcn.140017208
test eax, eax
je 0x140009831
cmp qword [rsp + 0x38], 0
je 0x140009846
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.140017208
test eax, eax
jne 0x140009846
mov rcx, rbp
call fcn.14000d0d0
mov rbx, rax
test rax, rax
jne 0x1400097f2
jmp 0x140009c4e
mov qword [rsp + 0x20], rbx
mov edx, 0x105
lea rcx, [rsp + 0x50]
lea r8, [0x14002ffc4]
mov r9, qword [rsp + 0x28]
call fcn.14000a130
cmp qword [rsp + 0x50], 0
jne 0x14000987c
test r15d, r15d
mov eax, 0x8007006f
cmovns r15d, eax
jmp 0x140009831
mov r9, qword [r14 + 8]
mov qword [rsp + 0x20], rbx
mov edx, 0x105
lea rcx, [rsp + 0x40]
lea r8, [0x14002ffc4]
call fcn.14000a130
cmp qword [rsp + 0x40], 0
je 0x14000986e
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov r8, rdi
call fcn.14000a2f0
test r15d, r15d
mov ecx, eax
cmovs ecx, r15d
test eax, eax
cmovs r15d, ecx
call fcn.1400148a4
mov dword [rax], 0
jmp 0x140009831
mov ebp, 0x80004005
jmp 0x14000997e
mov rcx, rbx
mov dx, 0x2f
call fcn.1400100d4
mov rbp, rax
mov rcx, rbx
mov dx, 0x5c
call fcn.1400100d4
cmp rbp, rax
cmova rax, rbp
mov ebp, 0x80004005
test rax, rax
je 0x14000997e
add rax, 2
lea rcx, [rsp + 0x90]
mov rdx, rax
call fcn.140008220
xor r15d, r15d
test eax, eax
js 0x140009bd1
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140009bd1
mov rcx, qword [rsp + 0xa0]
lea rdx, [rax + 1]
cmp rcx, rdx
jb 0x14000997e
not rax
add rax, rcx
cmp rcx, rax
jb 0x14000996c
mov qword [rsp + 0xa0], rax
test rbx, rbx
je 0x140009969
mov word [rbx + rax*2], 0
mov rcx, rax
test rcx, rcx
je 0x14000997e
mov rbx, qword [rsp + 0x98]
jmp 0x14000958d
xor r15d, r15d
jmp 0x140009bd1
mov rdx, qword [r14 + 8]
lea rbx, [rsp + 0xb0]
mov rcx, rbx
call fcn.14000d060
call fcn.1400148a4
mov dword [rax], 0
mov rcx, rbx
call fcn.14000d0d0
test rax, rax
je 0x140009b4e
mov rbx, rax
lea r12, [rsp + 0xb0]
xorps xmm6, xmm6
mov rcx, rbx
lea rdx, [0x1400304e0]
call fcn.140017208
test eax, eax
je 0x140009a01
mov rcx, rbx
lea rdx, [0x1400304de]
call fcn.140017208
test eax, eax
je 0x140009a01
cmp qword [rsi + 0x10], 0
je 0x140009a1c
mov rdx, qword [rsi + 0x18]
mov rcx, rbx
call fcn.140017208
test eax, eax
jne 0x140009a1c
mov r15d, ebp
mov rcx, r12
call fcn.14000d0d0
mov rbx, rax
mov ebp, r15d
test rax, rax
jne 0x1400099c4
jmp 0x140009b51
mov ecx, 0x20a
call fcn.14000e284
mov r15, rax
lea rcx, [rax + 2]
mov r8d, 0x208
xor edx, edx
call fcn.14000feb0
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 rbx, [rsp + 0xa0]
mov rcx, rbx
lea r8, [0x14002ffc4]
call fcn.14000a130
cmp qword [rsp + 0xa0], 0
je 0x140009b1a
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
mov rdx, rbx
xor r8d, r8d
call fcn.140009d00
mov eax, dword [rsp + 0x350]
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.140009350
mov r15d, eax
test ebp, ebp
cmovs r15d, ebp
call fcn.1400148a4
mov dword [rax], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x140009b03
call fcn.14000e28c
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009b27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009b27
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 0x140009a04
call fcn.14000e28c
jmp 0x140009a04
mov r15d, ebp
call fcn.1400148a4
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 0x1400094e0
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400094e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
jmp 0x140009bc6
mov rcx, 0xffffffffffffffff
jmp 0x140009bae
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x28]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009bbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 8], 0xffffffffffffffff
xor r15d, r15d
mov rcx, rbx
call fcn.14000e28c
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x98], 0
test rcx, rcx
je 0x140009bef
call fcn.14000e28c
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140009c0d
call fcn.14000e28c
test r15b, r15b
setne al
or r12b, al
jne 0x140009c30
mov rcx, r14
mov rdx, rsi
mov r8, r14
call fcn.140008fc0
cmp qword [r14], 0
je 0x1400094e0
cmp qword [rsi + 8], 0xffffffffffffffff
jne 0x140009437
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140009d00
jmp 0x140009437
call fcn.1400148a4
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.14000a170
mov ebp, eax
test ebx, ebx
cmovs ebp, ebx
mov rcx, qword [rsp + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x140009c93
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x140009cab
call fcn.14000e28c
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
test rcx, rcx
je 0x140009cc3
call fcn.14000e28c
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
je 0x140009cdb
call fcn.14000e28c
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140009cf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15b, 1
mov rbx, qword [rsp + 0x28]
jmp 0x140009bc9