Function at 0x14007d690
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r9
mov qword [rbp - 0x11], r9
mov qword [rbp - 0x29], r8
mov rsi, rdx
mov qword [rbp - 0x19], rdx
mov rbx, rcx
mov qword [rbp - 9], rcx
xor r14d, r14d
mov dword [rbp - 0x49], r14d
cmp qword [rcx + 0x168], r14
je 0x14007db19
mov rcx, qword [rcx + 0x1f8]
cmp dword [rcx - 0x10], r14d
je 0x14007db19
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14007db19
mov qword [rbp + 7], r14
mov rcx, qword [rbx + 0x1f8]
sub rcx, 0x18
call fcn.140019180
add rax, 0x18
mov qword [rbp + 7], rax
lea r8d, [r14 + 1]
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.14001dba0
nop
mov rcx, qword [rax]
movzx ebx, word [rcx]
sub ebx, 0x5c
jne 0x14007d746
movzx ebx, word [rcx + 2]
movzx eax, r14w
sub ebx, eax
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007d771
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test ebx, ebx
je 0x14007d794
lea rdx, [0x140267514]
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14007d780
lea rcx, [rbp + 7]
call fcn.14001def0
test rsi, rsi
jne 0x14007d79e
mov r8d, r14d
jmp 0x14007d7ac
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x14007d7a1
mov rdx, rsi
mov rcx, r13
call fcn.140018f50
nop
mov qword [rbp - 0x41], r14
mov rdi, qword [rbp + 7]
lea rax, [rdi - 0x18]
mov qword [rbp - 1], rax
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x14007d7e6
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x14007d80a
call fcn.140019590
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x14007db46
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x41], rbx
mov r15d, 2
mov dword [rbp - 0x49], r15d
mov r13, qword [r13]
movsxd r12, dword [r13 - 0x10]
movsxd r14, dword [rdi - 0x10]
lea esi, [r12 + r14]
test esi, esi
js 0x14007db3b
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, esi
or eax, ecx
jge 0x14007d861
mov edx, esi
lea rcx, [rbp - 0x41]
call fcn.140018ea0
mov rbx, qword [rbp - 0x41]
add r14, r14
je 0x14007d88b
test rbx, rbx
jne 0x14007d87d
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x14007d88b
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call fcn.14022e460
mov r8, r12
add r8, r8
lea rcx, [r14 + rbx]
je 0x14007d8c2
test rcx, rcx
je 0x14007d8b2
test r13, r13
je 0x14007d8ab
mov rdx, r13
call fcn.14022e460
jmp 0x14007d8c2
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
cmp esi, dword [rbx - 0xc]
jg 0x14007db3b
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor r12d, r12d
mov word [rbx + rax*2], r12w
lea rdx, [rbp - 0x41]
mov r14, qword [rbp - 0x29]
mov rcx, r14
call fcn.140017b80
mov eax, r15d
and eax, 0xfffffffd
mov dword [rbp - 0x49], eax
lea rdx, [rbx - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007d919
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14007dac5
nop word [rax + rax]
mov r9d, r15d
mov r8, qword [rbp - 0x19]
lea rdx, str._s___d_
mov rsi, qword [rbp - 0x11]
mov rcx, rsi
call fcn.14001c4c0
nop
mov qword [rbp - 0x39], r12
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x14007d96d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x14007d991
call fcn.140019590
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x14007db5c
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x39], rbx
mov r12d, dword [rbp - 0x49]
or r12d, 1
mov dword [rbp - 0x49], r12d
mov r13, qword [rsi]
mov ecx, dword [r13 - 0x10]
mov dword [rbp - 0x31], ecx
movsxd r14, dword [rdi - 0x10]
lea esi, [rcx + r14]
test esi, esi
js 0x14007db51
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, esi
or eax, ecx
jge 0x14007d9ec
mov edx, esi
lea rcx, [rbp - 0x39]
call fcn.140018ea0
mov rbx, qword [rbp - 0x39]
add r14, r14
je 0x14007da17
test rbx, rbx
jne 0x14007da08
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x14007da17
mov r8, r14
mov rdx, qword [rbp + 7]
mov rcx, rbx
call fcn.14022e460
movsxd r8, dword [rbp - 0x31]
add r8, r8
lea rcx, [r14 + rbx]
je 0x14007da4f
test rcx, rcx
je 0x14007da3f
test r13, r13
je 0x14007da38
mov rdx, r13
call fcn.14022e460
jmp 0x14007da4f
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
cmp esi, dword [rbx - 0xc]
jg 0x14007db51
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rdx, [rbp - 0x39]
mov r14, qword [rbp - 0x29]
mov rcx, r14
call fcn.140017b80
and r12d, 0xfffffffe
mov dword [rbp - 0x49], r12d
lea rdx, [rbx - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007daa3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007dac5
inc r15d
cmp r15d, 0x2710
jg 0x14007daed
xor r12d, r12d
jmp 0x14007d930
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rbp - 9]
mov qword [rcx + 0x220], rax
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [rcx + 0x1f0]
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x14007daf1
xor bl, bl
jmp 0x14007daf3
mov bl, 1
mov rax, qword [rbp - 1]
lock xadd dword [rax + 0x10], esi
sub esi, 1
jg 0x14007db14
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rdx, rax
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
movzx eax, bl
jmp 0x14007db1b
xor al, al
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140019300
int3
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80070057
call fcn.140019300
int3
mov ecx, 0x80004005
call fcn.140019300
int3