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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x198
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
lea rcx, [rax + 0x38]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x30]
call fcn.10003cea0
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001fee0
nop
test rsi, rsi
je 0x1000383fd
mov ecx, 0x7fff
mov rax, rsi
cmp word [rax], 0
je 0x1000383ee
add rax, 2
sub rcx, 1
jne 0x1000383de
xor ebx, ebx
mov edi, 0x80070057
test rcx, rcx
cmove ebx, edi
jmp 0x100038404
mov edi, 0x80070057
mov ebx, edi
test ebx, ebx
jns 0x100038463
lea rdx, [0x10000c0b0]
mov ecx, 3
call fcn.10003c3c0
cmp ebx, edi
jne 0x100038440
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
mov edi, 0xce
jmp 0x100038696
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
mov edi, 0x57
jmp 0x100038696
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x1d8]
call fcn.10001ff98
nop
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.1000349f8
mov edi, eax
test eax, eax
je 0x1000384cf
mov r9, rsi
lea r8, [0x10000c100]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
jmp 0x100038696
mov rbx, qword [rsp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1000384f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000384f7
shr edi, 3
and edi, 2
test edi, edi
je 0x100038530
mov r9, rbx
lea r8, [0x10000c148]
mov edx, edi
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
jmp 0x100038696
call fcn.100033614
test eax, eax
jne 0x10003856c
lea rdx, [0x10000c520]
lea ecx, [rax + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
mov edi, 5
jmp 0x100038696
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x30]
call fcn.10003d47c
mov edi, eax
test eax, eax
je 0x1000385b9
mov r9, rbx
lea r8, [0x10000be40]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
jmp 0x100038696
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp qword [rsp + 0x38], 0
cmovne edi, dword [rsp + 0x188]
lea rcx, [rsp + 0x30]
call fcn.10003d1d8
cmp edi, 6
jne 0x100038670
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1d8]
call fcn.10001ff10
nop
mov rdx, rbp
mov rcx, rax
call fcn.10004eaa8
mov edi, eax
test eax, eax
jne 0x10003862e
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
jmp 0x100038696
cmp eax, 0x490
jne 0x100038655
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
mov edi, 0xe0000302
jmp 0x100038696
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
jmp 0x100038696
mov rdx, rbp
mov rcx, rbx
call fcn.100037eb0
mov edi, eax
lea rcx, [rsp + 0x1c0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x1d0]
call fcn.10001fba0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
pop rbp
pop rbx
ret