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

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
lea rcx, [rax + 0x18]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x30]
call fcn.10003845c
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001e06c
nop
xor r12d, r12d
cmp rsi, r12
je 0x10003487a
mov ecx, 0x7fff
mov rax, rsi
cmp word [rax], r12w
je 0x10003486a
add rax, 2
sub rcx, 1
jne 0x10003485a
mov ebx, r12d
mov edi, 0x80070057
cmp rcx, r12
cmove ebx, edi
jmp 0x100034881
mov edi, 0x80070057
mov ebx, edi
cmp ebx, r12d
jge 0x1000348e1
lea rdx, [0x10000bc50]
mov ecx, 3
call fcn.100037e18
cmp ebx, edi
jne 0x1000348be
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
mov edi, 0xce
jmp 0x100034b1d
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
mov edi, 0x57
jmp 0x100034b1d
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x1d8]
call fcn.10001e134
nop
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.10003171c
mov edi, eax
cmp eax, r12d
je 0x10003494e
mov r9, rsi
lea r8, [0x10000bca0]
mov edx, eax
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
jmp 0x100034b1d
mov rbx, qword [rsp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x100034970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100034976
shr edi, 3
and edi, 2
cmp edi, r12d
je 0x1000349b0
mov r9, rbx
lea r8, [0x10000bce8]
mov edx, edi
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
jmp 0x100034b1d
call fcn.1000305b8
cmp eax, r12d
jne 0x1000349ef
lea rdx, [0x10000c170]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
mov edi, 5
jmp 0x100034b1d
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x30]
call fcn.1000386e0
mov edi, eax
cmp eax, r12d
je 0x100034a3d
mov r9, rbx
lea r8, [0x10000b9e0]
mov edx, eax
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
jmp 0x100034b1d
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp qword [rsp + 0x38], r12
cmovne edi, dword [rsp + 0x188]
lea rcx, [rsp + 0x30]
call fcn.1000385e0
cmp edi, 6
jne 0x100034af7
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1d8]
call fcn.10001e09c
nop
mov rdx, rbp
mov rcx, rax
call fcn.1000459a0
mov edi, eax
cmp eax, r12d
jne 0x100034ab5
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
mov edi, r12d
jmp 0x100034b1d
cmp eax, 0x490
jne 0x100034adc
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
mov edi, 0xe0000302
jmp 0x100034b1d
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
jmp 0x100034b1d
mov rdx, rbp
mov rcx, rbx
call fcn.1000343dc
mov edi, eax
lea rcx, [rsp + 0x1c0]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10003861c
nop
lea rcx, [rsp + 0x1d0]
call fcn.10001f3ec
mov eax, edi
add rsp, 0x190
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret