Function at 0x180011410
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x180083008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, r9
mov r12, r8
mov r15, rdx
xor r14d, r14d
mov dword [r9], r14d
lea ecx, [r14 + 0x18]
call fcn.18004d044
mov rdi, rax
mov qword [rbp - 0x69], rax
mov dword [rax + 8], r14d
lea rax, [0x180077250]
mov qword [rdi], rax
mov qword [rdi + 0x10], 0xffffffffffffffff
mov qword [rbp - 0x69], rdi
mov rcx, rdi
call fcn.1800044e0
nop
cmp qword [r15 + 0x18], 8
jb 0x180011494
mov rdx, qword [r15]
jmp 0x180011497
mov rdx, r15
mov rcx, rdi
call fcn.18000f610
mov esi, eax
test eax, eax
jne 0x180011534
lea ecx, [rax + 0x20]
call fcn.18004d044
mov rbx, rax
mov qword [rbp - 0x61], rax
mov dword [rax + 8], r14d
lea rax, [0x180077220]
mov qword [rbx], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
cmp qword [rbx + 0x10], rdi
je 0x1800114f0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x10], rdi
test rcx, rcx
je 0x1800114f0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x61], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
xor eax, eax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov word [rbp - 0x21], ax
mov rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.180003ff0
mov esi, eax
test eax, eax
je 0x180011544
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
nop
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
mov eax, esi
jmp 0x1800118af
movzx esi, word [rbp - 0x29]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test si, si
jne 0x18001156a
mov eax, 0x80004005
jmp 0x1800118af
xor ebx, ebx
mov r14d, ebx
sub si, 1
je 0x1800118a9
nop dword [rax]
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rbx
mov word [rbp - 0x49], bx
lea rdx, [rbp - 0x49]
mov rcx, r12
call fcn.180010a10
test eax, eax
je 0x180011838
cmp si, 1
jne 0x18001163f
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180011605
lea rcx, [rbp - 0x49]
call fcn.180011fc0
cmp qword [rbp - 0x39], rax
jb 0x180011765
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
mov word [rcx + rax*2], bx
mov r8d, 4
lea rdx, str..exe
lea rcx, [rbp - 0x49]
call fcn.1800121b0
mov dword [rbp - 0x61], ebx
mov dword [rbp - 0x69], ebx
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
call fcn.180013720
test eax, eax
js 0x1800117a2
cmp dword [rbp - 0x61], 0x7ea5a6b
jne 0x1800117a2
mov r14d, dword [rbp - 0x69]
mov ecx, 0x18
call fcn.18004d044
mov rdi, rax
mov qword [rbp - 0x69], rax
mov dword [rax + 8], ebx
lea rax, [0x180077250]
mov qword [rdi], rax
mov qword [rdi + 0x10], 0xffffffffffffffff
mov qword [rbp - 0x69], rdi
mov rcx, rdi
call fcn.1800044e0
nop
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
mov rcx, rdi
call fcn.18000f610
test eax, eax
js 0x180011798
test r14d, r14d
je 0x1800116af
mov rax, qword [rdi]
mov edx, r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
js 0x180011798
mov ecx, 0x20
call fcn.18004d044
mov qword [rbp - 0x59], rax
mov edx, r14d
mov r8, rdi
mov rcx, rax
call fcn.1800138c0
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x1800116e1
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + 8]
nop
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov word [rbp + 0xf], ax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003ff0
test eax, eax
js 0x180011772
cmp word [rbp + 7], si
jne 0x180011772
lea rax, [rbp - 0x49]
cmp r15, rax
je 0x18001172e
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.18000e760
nop
test rbx, rbx
je 0x18001173d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x49]
call fcn.18000ece0
mov eax, 0xffff
add si, ax
je 0x1800118a9
xor ebx, ebx
jmp 0x180011580
lea rcx, str.invalid_string_position
call fcn.18004dfc8
nop
test rbx, rbx
je 0x180011781
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x49]
call fcn.18000ece0
xor ebx, ebx
jmp 0x1800117ab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x49]
call fcn.18000ece0
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rbx
mov word [rbp - 0x49], bx
lea rdx, [rbp - 0x49]
mov rcx, r12
call fcn.1800103f0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x1800118a9
inc rdx
mov rcx, qword [rbp - 0x49]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x1800117f2
call fcn.18005133c
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x1800118a4
test byte [rbp - 0x49], 0x1f
je 0x18001180e
call fcn.18005133c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18001181d
call fcn.18005133c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18001182c
call fcn.18005133c
int3
cmp rcx, 0x27
jbe 0x1800118a1
call fcn.18005133c
int3
mov rax, qword [rbp - 0x31]
cmp rax, 8
jb 0x1800118a9
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x49]
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jbe 0x18001185f
call fcn.18005133c
int3
lea rax, [rdx + rdx]
cmp rax, 0x1000
jb 0x1800118a4
test byte [rbp - 0x49], 0x1f
je 0x180011877
call fcn.18005133c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180011886
call fcn.18005133c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180011895
call fcn.18005133c
int3
cmp rcx, 0x27
jbe 0x1800118a1
call fcn.18005133c
int3
mov rcx, rax
call fcn.18004d034
mov dword [r13], r14d
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18004d010
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret