Function at 0x1400170f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
test rcx, rcx
je 0x140017803
cmp word [rcx], r15w
je 0x140017803
mov r13d, 4
mov r8d, r13d
lea rdx, [0x14006c560]
call fcn.140046500
lea rcx, [rbx + 8]
test eax, eax
cmovne rcx, rbx
movzx eax, word [rcx]
test ax, ax
je 0x140017190
nop dword [rax]
cmp ax, 0x2a
je 0x140017803
cmp ax, 0x3f
je 0x140017803
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140017170
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r15
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017b50
nop
mov r14, qword [0x14006fe20]
mov qword [rsp + 0x58], r14
mov ebx, r15d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], r15d
mov edx, 6
xor ecx, ecx
call fcn.140044d5c
test rax, rax
je 0x1400171fb
mov r14, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x64], 2
mov dword [rax], 0x5c
mov ebx, 1
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x40], 1
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400180b0
nop
mov edi, 3
mov dword [rsp + 0x40], edi
cmp dword [rax + 8], ebx
jne 0x140017255
mov rax, qword [rax]
mov r8, r14
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140017244
add rax, 2
test ecx, ecx
jne 0x140017230
test edx, edx
jne 0x140017255
mov rbx, qword [rsp + 0x48]
mov sil, 1
jmp 0x1400172f0
mov rbx, qword [0x14006fe20]
mov qword [rsp + 0x48], rbx
mov esi, r15d
mov qword [rsp + 0x50], r15
mov edx, 6
xor ecx, ecx
call fcn.140044d5c
test rax, rax
je 0x140017299
mov rbx, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 2
mov dword [rax], 0x2f
mov esi, 1
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x40], 7
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400180b0
nop
mov edi, 0xf
mov dword [rsp + 0x40], edi
cmp dword [rax + 8], esi
jne 0x1400172ed
mov rax, qword [rax]
mov r8, rbx
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400172e4
add rax, 2
test ecx, ecx
jne 0x1400172d0
test edx, edx
jne 0x1400172ed
mov sil, 1
jmp 0x1400172f0
xor sil, sil
test dil, 8
je 0x14001732b
and edi, 0xfffffff7
mov dword [rsp + 0x40], edi
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x14006fe20]
test rcx, rcx
je 0x14001731f
cmp rcx, rax
je 0x14001731f
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
jmp 0x140017332
mov rax, qword [0x14006fe20]
test dil, 4
je 0x140017362
and edi, 0xfffffffb
mov dword [rsp + 0x40], edi
test rbx, rbx
je 0x140017358
cmp rbx, rax
je 0x140017358
mov rcx, rbx
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
test dil, 2
je 0x140017391
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140017389
cmp rcx, rax
je 0x140017389
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
test dil, 1
je 0x1400173c1
and edi, 0xfffffffe
mov dword [rsp + 0x40], edi
test r14, r14
je 0x1400173b7
cmp r14, rax
je 0x1400173b7
mov rcx, r14
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
test sil, sil
je 0x14001740e
mov r8d, dword [rbp - 0x78]
dec r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.140017fa0
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140017c40
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400173ff
cmp rcx, qword [0x14006fe20]
je 0x1400173ff
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
lea rdx, [rbp - 0x50]
mov r15, qword [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400176a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140017459
mov rsi, qword [rsp + 0x68]
cmp eax, 3
jne 0x140017670
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x140017670
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rdx, qword [0x14006fe20]
mov qword [rsp + 0x48], rdx
xor eax, eax
mov qword [rsp + 0x50], rax
or edi, 0x40
mov dword [rsp + 0x40], edi
mov esi, dword [rbp - 0x78]
cmp esi, 0xffffffff
jg 0x140017488
mov r13d, eax
jmp 0x14001748f
cmp esi, 4
cmovle r13d, esi
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rax
test r15, r15
je 0x140017516
mov dword [rsp + 0x54], r13d
lea ecx, [r13 + 1]
movsxd rdx, ecx
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140031930
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400174ee
mov rdx, qword [0x14006fe20]
mov r14, rdx
mov qword [rsp + 0x48], rdx
xor r13d, r13d
mov qword [rsp + 0x50], r13
jmp 0x140017519
movsxd rax, r13d
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, r15
mov rcx, r14
call fcn.14005b150
xor eax, eax
mov word [rbx + r14], ax
mov dword [rsp + 0x50], r13d
mov rdx, qword [0x14006fe20]
xor r13d, r13d
mov rcx, r13
lea r8, [0x14006c560]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r14 + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14001754b
cmp rcx, 5
jne 0x140017530
mov ebx, r13d
jmp 0x140017550
sbb ebx, ebx
or ebx, 1
and edi, 0xffffffbf
mov dword [rsp + 0x40], edi
test r14, r14
je 0x140017577
cmp r14, rdx
je 0x140017577
mov rcx, r14
call fcn.140031938
mov rdx, qword [0x14006fe20]
lea r8, [0x14006c560]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
test ebx, ebx
je 0x14001763a
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], 0
mov rdx, r8
lea rcx, [rsp + 0x58]
call fcn.140017b50
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.140017940
bts edi, 7
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140017c40
btr edi, 7
mov dword [rsp + 0x40], edi
mov rcx, qword [rsp + 0x48]
mov rax, qword [0x14006fe20]
test rcx, rcx
je 0x1400175fc
cmp rcx, rax
je 0x1400175fc
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140017625
cmp rcx, rax
je 0x140017625
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
mov esi, dword [rbp - 0x78]
mov r15, qword [rbp - 0x80]
mov rax, r15
test esi, esi
je 0x140017655
cmp word [rax], 0x2f
jne 0x14001764c
mov word [rax], 0x5c
add rax, 2
sub esi, 1
jne 0x140017641
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400176a4
mov rsi, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7b
jne 0x140017695
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140017695
mov byte [r12 + 8], 1
jmp 0x1400177d3
mov dword [r12 + 0x18], ebx
xor bl, bl
jmp 0x1400177d5
xor r13d, r13d
mov edx, dword [rbp - 0x50]
mov eax, edx
mov ecx, dword [rbp - 0x2c]
and eax, 0x400
je 0x1400176c5
cmp ecx, 0xa000000c
jne 0x1400176c5
mov r8b, 1
mov byte [r12 + 9], r8b
jmp 0x1400176d2
mov byte [r12 + 9], 0
xor r8d, r8d
test eax, eax
je 0x1400176de
cmp ecx, 0xa0000003
jne 0x1400176de
mov al, 1
jmp 0x1400176e0
xor eax, eax
mov byte [r12 + 0xa], al
mov dword [r12 + 0x44], edx
test dl, 0x10
je 0x1400176f5
mov byte [r12 + 8], 1
test r8b, r8b
jne 0x14001770b
cmp byte [r12 + 8], r8b
jne 0x14001770b
test al, al
jne 0x14001770b
mov byte [r12 + 0xc], 1
cmp byte [r12 + 0xc], 0
je 0x140017724
mov ecx, dword [rbp - 0x34]
shl rcx, 0x20
mov eax, dword [rbp - 0x30]
add rcx, rax
mov qword [r12], rcx
shr edx, 9
and dl, 1
mov byte [r12 + 0xd], dl
je 0x14001779a
mov dword [rbp - 0x70], r13d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
mov dword [rbp - 0x5c], eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001779a
mov r9d, 0x18
lea r8, [rbp - 0x70]
lea edx, [r9 - 0x17]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x14001779a
mov rcx, qword [rbp - 0x70]
mov qword [r12 + 0x10], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rbp - 0x48]
mov ecx, dword [rbp - 0x4c]
call fcn.140016950
mov qword [r12 + 0x20], rax
mov edx, dword [rbp - 0x40]
mov ecx, dword [rbp - 0x44]
call fcn.140016950
mov qword [r12 + 0x28], rax
mov edx, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x3c]
call fcn.140016950
mov qword [r12 + 0x30], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
test r15, r15
je 0x1400177eb
cmp r15, qword [0x14006fe20]
je 0x1400177eb
mov rcx, r15
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], 0
movzx eax, bl
jmp 0x140017805
xor al, al
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14002ad90
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret