Function at 0x100038730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbp, rdx
mov rsi, rcx
lea rcx, [rax + 0x18]
call fcn.100020360
nop
lea rcx, [rsp + 0x30]
call fcn.100055970
nop
lea rcx, [rsp + 0x1b0]
call fcn.100020360
nop
test rsi, rsi
je 0x10003879f
mov ecx, 0x7fff
mov rax, rsi
cmp word [rax], 0
je 0x100038790
add rax, 2
sub rcx, 1
jne 0x100038780
xor ebx, ebx
mov edi, 0x80070057
test rcx, rcx
cmove ebx, edi
jmp 0x1000387a6
mov edi, 0x80070057
mov ebx, edi
test ebx, ebx
jns 0x100038805
lea rdx, [0x10000c3c0]
mov ecx, 3
call fcn.100054fd8
cmp ebx, edi
jne 0x1000387e2
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
mov edi, 0xce
jmp 0x100038a38
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
mov edi, 0x57
jmp 0x100038a38
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x1c8]
call fcn.100020428
nop
xor r8d, r8d
lea rdx, [rsp + 0x1c0]
mov rcx, rax
call fcn.100034be4
mov edi, eax
test eax, eax
je 0x100038871
mov r9, rsi
lea r8, [0x10000c410]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
jmp 0x100038a38
mov rbx, qword [rsp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x100038893
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100038899
shr edi, 3
and edi, 2
test edi, edi
je 0x1000388d2
mov r9, rbx
lea r8, [0x10000c458]
mov edx, edi
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
jmp 0x100038a38
call fcn.1000338d4
test eax, eax
jne 0x10003890e
lea rdx, [0x10000c8e0]
lea ecx, [rax + 3]
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
mov edi, 5
jmp 0x100038a38
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.100055f34
mov edi, eax
test eax, eax
je 0x10003895b
mov r9, rbx
lea r8, [0x10000c150]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
jmp 0x100038a38
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp qword [rsp + 0x38], 0
cmovne edi, dword [rsp + 0x188]
lea rcx, [rsp + 0x30]
call fcn.100055c98
cmp edi, 6
jne 0x100038a12
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x1c8]
call fcn.100020390
nop
mov rdx, rbp
mov rcx, rax
call fcn.100063bf8
mov edi, eax
test eax, eax
jne 0x1000389d0
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
jmp 0x100038a38
cmp eax, 0x490
jne 0x1000389f7
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
mov edi, 0xe0000302
jmp 0x100038a38
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
jmp 0x100038a38
mov rdx, rbp
mov rcx, rbx
call fcn.100038250
mov edi, eax
lea rcx, [rsp + 0x1b0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x30]
call fcn.100055cd4
nop
lea rcx, [rsp + 0x1c0]
call fcn.10002006c
mov eax, edi
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret