Function at 0x18000f020
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x49], esi
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
lea rcx, [rbp - 9]
call fcn.18002c410
mov rdi, rax
lea rax, [rbp - 0x31]
cmp rax, rdi
je 0x18000f0ea
cmp qword [rbp - 0x19], 8
jb 0x18000f092
mov rcx, qword [rbp - 0x31]
call fcn.1800bf2b8
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
cmp qword [rdi + 0x18], 8
jae 0x18000f0c1
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1800bed30
jmp 0x18000f0cb
mov rax, qword [rdi]
mov qword [rbp - 0x31], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x21], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x19], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
cmp qword [rbp + 0xf], 8
jb 0x18000f0fa
mov rcx, qword [rbp - 9]
call fcn.1800bf2b8
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
cmp qword [rbp - 0x21], 0
je 0x18000f1e6
mov r8d, reloc.OLEAUT32.dll_SafeArrayDestroy
lea rdx, str.chaichuan_app_
lea rcx, [rbp - 0x31]
call fcn.180015430
cmp qword [rbp - 0x21], 0
je 0x18000f1e6
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x18000f1e6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
lea rax, [rbp - 0x31]
cmp rbx, rax
je 0x18000f1da
cmp qword [rbx + 0x18], 8
jb 0x18000f17f
mov rcx, qword [rbx]
call fcn.1800bf2b8
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rcx, qword [rbp - 0x19]
cmp rcx, 8
jae 0x18000f1b3
mov r8, qword [rbp - 0x21]
lea r8, [r8 + r8 + 2]
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.1800bed30
mov rcx, qword [rbp - 0x19]
jmp 0x18000f1be
mov rax, qword [rbp - 0x31]
mov qword [rbx], rax
mov qword [rbp - 0x31], rsi
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
mov dword [rbp - 0x49], 1
jmp 0x18000f3b0
lea rcx, [rbp + 0x1f]
call fcn.180034690
nop
lea r8, [0x18014935c]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18001e080
mov rdi, rax
lea rax, [rbp - 0x31]
cmp rax, rdi
je 0x18000f277
cmp qword [rbp - 0x19], 8
jb 0x18000f21f
mov rcx, qword [rbp - 0x31]
call fcn.1800bf2b8
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
cmp qword [rdi + 0x18], 8
jae 0x18000f24e
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1800bed30
jmp 0x18000f258
mov rax, qword [rdi]
mov qword [rbp - 0x31], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x21], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x19], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
cmp qword [rbp + 0xf], 8
jb 0x18000f287
mov rcx, qword [rbp - 9]
call fcn.1800bf2b8
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
cmp qword [rbp + 0x37], 8
jb 0x18000f2a7
mov rcx, qword [rbp + 0x1f]
call fcn.1800bf2b8
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], rsi
mov word [rbp + 0x1f], si
mov r9d, reloc.OLEAUT32.dll_SafeArrayDestroy
xor r8d, r8d
lea rdx, str.chaichuan_app_
lea rcx, [rbp - 0x31]
call fcn.1800156c0
cmp rax, 0xffffffffffffffff
je 0x18000f365
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
lea rax, [rbp - 0x31]
cmp rbx, rax
je 0x18000f35c
cmp qword [rbx + 0x18], 8
jb 0x18000f301
mov rcx, qword [rbx]
call fcn.1800bf2b8
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rcx, qword [rbp - 0x19]
cmp rcx, 8
jae 0x18000f335
mov r8, qword [rbp - 0x21]
lea r8, [r8 + r8 + 2]
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.1800bed30
mov rcx, qword [rbp - 0x19]
jmp 0x18000f340
mov rax, qword [rbp - 0x31]
mov qword [rbx], rax
mov qword [rbp - 0x31], rsi
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
mov dword [rbp - 0x49], 1
jmp 0x18000f3b0
call fcn.180014830
mov rcx, rax
lea rdx, [rbp + 0x1f]
call fcn.1800356e0
nop
lea r8, str.chaichuan_app_
mov rdx, rax
mov rcx, rbx
call fcn.18001e080
mov dword [rbp - 0x49], 1
cmp qword [rbp + 0x37], 8
jb 0x18000f3a0
mov rcx, qword [rbp + 0x1f]
call fcn.1800bf2b8
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], rsi
mov word [rbp + 0x1f], si
cmp qword [rbp - 0x19], 8
jb 0x18000f3c0
mov rcx, qword [rbp - 0x31]
call fcn.1800bf2b8
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rsi
mov word [rbp - 0x31], si
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800be9b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret