Function at 0x140038260
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x230], rbx
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140038621
mov qword [rbp + 0x58], 7
mov ecx, edi
mov qword [rbp + 0x50], rcx
mov word [rbp + 0x40], di
mov byte [rbp + 0x60], dil
test rbx, rbx
je 0x1400382fe
cmp word [rbx], di
jne 0x1400382df
mov r8d, edi
jmp 0x1400382ee
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400382e3
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.14000ff3c
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
mov rax, rdi
mov r15d, 0x5c
test rcx, rcx
je 0x140038338
nop word [rax + rax]
cmp word [rdx + rax*2], 0x2f
jne 0x14003832c
mov word [rdx + rax*2], r15w
inc rax
cmp rax, rcx
jb 0x140038320
mov rcx, qword [rbp + 0x50]
cmp r14d, 1
jne 0x14003850c
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rdi
mov word [rbp + 0x68], di
mov byte [rbp + 0x88], 0
test rcx, rcx
je 0x1400384b6
nop word [rax + rax]
mov edx, r15d
xor r8d, r8d
lea rcx, [rbp + 0x40]
call fcn.140037e00
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400383b5
or r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x68]
call fcn.1400101ec
mov qword [rbp + 0x50], rdi
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rax, qword [rbp + 0x40]
mov word [rax], di
jmp 0x14003846b
mov r8, rax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x40]
call fcn.140037b40
nop
lea r8, [rbx + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0x40]
call fcn.140037bf0
mov rbx, rax
lea rax, [rbp + 0x40]
cmp rax, rbx
je 0x140038419
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.14001009c
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbx + 0x10]
mov qword [rbp + 0x50], rcx
mov qword [rbx + 0x10], rdx
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x58], rax
mov qword [rbx + 0x18], rcx
movzx ecx, byte [rbp + 0x60]
movzx eax, byte [rbx + 0x20]
mov byte [rbp + 0x60], al
mov byte [rbx + 0x20], cl
cmp qword [rbp + 0xd0], 8
jb 0x14003843d
mov rcx, qword [rbp + 0xb8]
call fcn.140046814
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x68]
call fcn.1400101ec
nop
cmp qword [rbp + 0xa8], 8
jb 0x14003846b
mov rcx, qword [rbp + 0x90]
call fcn.140046814
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140038495
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400384b6
mov r8d, 1
lea rdx, [0x140093a58]
lea rcx, [rbp + 0x68]
call fcn.14000ff3c
cmp qword [rbp + 0x50], 0
jne 0x140038370
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
mov rcx, rsi
call fcn.140038080
nop
cmp qword [rbp + 0x80], 8
jb 0x1400384e0
mov rcx, qword [rbp + 0x68]
call fcn.140046814
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], rdi
mov word [rbp + 0x68], di
cmp qword [rbp + 0x58], 8
jb 0x140038630
mov rcx, qword [rbp + 0x40]
call fcn.140046814
jmp 0x140038630
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000738c
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rsp + 0x38]
call fcn.1400082a0
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x30]
jne 0x140038563
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140038572
or edx, 4
jmp 0x140038572
mov eax, 4
cmp qword [rcx + 0x48], 0
cmove edi, eax
mov edx, edi
xor r8d, r8d
call fcn.140004814
cmp qword [rbp - 0x38], 0
je 0x1400385ef
lea rcx, [rsp + 0x38]
call fcn.140008338
test rax, rax
jne 0x1400385b6
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x30]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400385ae
or edx, 4
xor r8d, r8d
call fcn.140004814
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
mov rcx, rsi
call fcn.140038080
nop
lea rcx, [rbp - 0x28]
call fcn.14000745c
lea rax, vtable.Vs._i_aoetdAs_bs__.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140044e24
jmp 0x1400384f3
lea rdx, [0x1400a11b2]
mov rcx, rsi
call fcn.140037f40
nop
lea rcx, [rbp - 0x28]
call fcn.14000745c
lea rax, vtable.Vs._i_aoetdAs_bs__.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140044e24
jmp 0x1400384f3
lea rdx, [0x1400a11b2]
mov rcx, rsi
call fcn.140037f40
mov rax, rsi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140046830
mov rbx, qword [rsp + 0x230]
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret