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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x1b0]
mov qword [rsp + 0x198], rdi
movaps xmm0, xmmword [0x14016ddb0]
movups xmmword [rsp + 0x1a0], xmm0
lea rbp, [rsp + 0x98]
mov qword [rsp + 0x80], rbp
movups xmmword [rsp + 0x88], xmm0
cmp byte [rdx + 0x11], 1
mov byte [rsp + 0x3f], r9b
jne 0x140033b16
mov al, byte [rdx + 0x10]
lea ecx, [rax - 3]
cmp cl, 4
jb 0x140033afc
cmp al, 1
jne 0x140033b16
add al, 0xff
movzx eax, al
lea rcx, [0x140033e50]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xorps xmm0, xmm0
jmp 0x140033b31
lea rax, [rsp + 0x198]
mov rcx, rdx
mov rdx, rax
call fcn.140040450
movups xmm0, xmmword [rsp + 0x198]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov r15, qword [rsp + 0x68]
cmp r15, 4
jb 0x140033b66
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x5c2e5c5c
je 0x140033bf1
mov qword [rsp + 0x40], rbx
mov rdi, rsi
mov r12b, 1
lea r13, [0x14016f810]
xor r14d, r14d
lea rbx, [rsp + 0x60]
lea rbp, [rsp + 0x48]
nop word cs:[rax + rax]
nop
mov rsi, qword [r13]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp r15, rax
jne 0x140033bba
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
mov rcx, rbx
mov rdx, rbp
call fcn.1400238e0
test eax, eax
je 0x140033bd3
cmp r14, 0x15
setb r12b
je 0x140033bd3
add r14, 1
mov r15, qword [rsp + 0x68]
add r13, 8
jmp 0x140033b90
test r12b, 1
mov rsi, rdi
lea rdi, [rsp + 0x1b0]
lea rbp, [rsp + 0x98]
mov rbx, qword [rsp + 0x40]
je 0x140033c4c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
movabs rax, 0xffff00000006
mov qword [rbx + 0x18], rax
movups xmmword [rbx + 0x20], xmm0
mov dword [rsi], 0
mov eax, dword [0x14019c710]
mov ecx, dword [0x14019dd7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x140033e19
lea rax, [0x14019a518]
mov qword [rsi + 8], rax
jmp 0x140033dcc
mov word [rsp + 0x58], 0x105
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov rcx, rsi
call fcn.140035ea0
cmp dword [rsi], 0
jne 0x140033dcc
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033d04
mov cl, byte [rsp + 0x3f]
xor cl, 1
movzx ecx, cl
or ecx, 0x10
shl ecx, 0x15
test eax, 0x400
mov eax, 0x2000000
cmovne eax, ecx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140033d04
mov r14, rax
mov rcx, rsi
mov rdx, rax
mov r8, rbx
call fcn.140037be0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140033dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xorps xmm0, xmm0
cmp ecx, 2
jne 0x140033d88
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x18], 1
jmp 0x140033db4
cmp eax, 0x20
jne 0x140033dad
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x18], 9
jmp 0x140033db4
movups xmmword [rbx + 0xc], xmm0
movups xmmword [rbx], xmm0
mov dword [rbx + 0x1c], 0xffff
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov rcx, rsi
mov edx, eax
call fcn.14002e8d0
mov rcx, qword [rsp + 0x80]
cmp rcx, rbp
je 0x140033ddf
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x198]
cmp rcx, rdi
je 0x140033df2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14016a260
mov rax, rsi
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14019c710]
call fcn.14016a3dc
cmp dword [0x14019c710], 0xffffffff
jne 0x140033c3c
lea rcx, [0x14003a600]
call fcn.14016a724
lea rcx, [0x14019c710]
call fcn.14016a37c
jmp 0x140033c3c