Function at 0x1400501a0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov byte [rdx], sil
cmp qword [rcx + 0x60], rsi
je 0x140050236
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140021910
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x50]
call fcn.140024500
cmp qword [rax + 0x18], 8
jb 0x140050207
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
mov byte [rbx], al
lea rcx, [rsp + 0x58]
call fcn.140008e70
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
lea rax, [r14 + 0x50]
jmp 0x140050619
test r8, r8
je 0x140050358
mov rdx, r8
lea rcx, [rbp - 0x30]
call fcn.14009cfb0
nop
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14009e010
nop
lea rdi, [r14 + 0x50]
cmp rdi, rax
je 0x14005027d
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050271
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
nop
lea rcx, [rbp - 0x30]
call fcn.14009e310
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x1400502a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x108], rsi
lea rcx, [rbp + 0xb0]
call fcn.140008e70
lea rcx, [rbp + 0x90]
call fcn.140008e70
lea rcx, [rbp + 0x70]
call fcn.140009080
lea rcx, [rbp + 0x50]
call fcn.140009080
lea rcx, [rbp + 0x30]
call fcn.140009080
lea rcx, [rbp + 0x10]
call fcn.140009080
lea rcx, [rbp - 0x10]
call fcn.140009080
lea rcx, [rbp - 0x30]
call fcn.140009080
nop
mov rcx, rdi
cmp qword [r14 + 0x68], 8
jb 0x140050306
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete cl
mov byte [rbx], cl
jne 0x140050350
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140024330
nop
cmp rdi, rax
je 0x140050343
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050337
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
movzx ecx, byte [rbx]
test cl, cl
jne 0x14005053b
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
mov dword [rsp + 0x30], 2
lea rbx, [fcn.140024cd0]
mov qword [rbp - 0x48], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400fc160
lea r8, [rbp - 0x48]
mov rdx, rbx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400503e1
cmp word [rbp - 0x30], 0
jne 0x1400503e1
mov dword [rbp - 0x40], 0x104
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov qword [rbp - 0x68], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140050401
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x68]
call fcn.140008ee0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140025330
mov dword [rsp + 0x30], 6
lea rcx, [rbp - 0x68]
call fcn.140008e70
nop
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x58]
call fcn.140008e70
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140024330
nop
lea rdi, [r14 + 0x50]
cmp rdi, rax
je 0x140050498
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14005048c
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
lea rdx, [0x14015fcac]
lea rcx, [rsp + 0x78]
call fcn.14004f980
mov rbx, rax
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
xor r8d, r8d
lea rdx, [0x14015c818]
lea rcx, [rsp + 0x38]
call fcn.140008ee0
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140024500
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
mov esi, 0x1c
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400220d0
test eax, eax
setne al
mov byte [r14 + 0x70], al
lea rcx, [rsp + 0x58]
call fcn.140008e70
cmp byte [r14 + 0x70], 0
je 0x140050576
lea rcx, [rsp + 0x78]
call fcn.14009d5a0
nop
cmp rdi, rax
je 0x14005056c
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050560
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 5
jl 0x140050606
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rbx, rax
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400219c0
nop
or esi, 1
mov dword [rsp + 0x30], esi
cmp qword [rax + 0x18], 0x10
jb 0x1400505ee
mov rax, qword [rax]
mov r9, rax
lea r8, str.AdpSDKUtil_GetDependeciesPath:__s
mov edx, 5
mov rcx, rbx
call fcn.14001e890
nop
test sil, 1
je 0x140050616
lea rcx, [rsp + 0x78]
call fcn.140009080
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0x2f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret