Function at 0x140050800
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 [0x140189090]
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 0x140050896
mov rdx, r8
lea rcx, [rsp + 0x38]
call fcn.140022020
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x50]
call fcn.140024c30
cmp qword [rax + 0x18], 8
jb 0x140050867
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.140008fe0
nop
lea rcx, [rsp + 0x38]
call fcn.140008fe0
lea rax, [r14 + 0x50]
jmp 0x140050c79
test r8, r8
je 0x1400509b8
mov rdx, r8
lea rcx, [rbp - 0x30]
call fcn.14009c370
nop
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14009d460
nop
lea rdi, [r14 + 0x50]
cmp rdi, rax
je 0x1400508dd
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400508d1
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x38]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x30]
call fcn.14009d760
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140050903
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x108], rsi
lea rcx, [rbp + 0xb0]
call fcn.140008fe0
lea rcx, [rbp + 0x90]
call fcn.140008fe0
lea rcx, [rbp + 0x70]
call fcn.1400091f0
lea rcx, [rbp + 0x50]
call fcn.1400091f0
lea rcx, [rbp + 0x30]
call fcn.1400091f0
lea rcx, [rbp + 0x10]
call fcn.1400091f0
lea rcx, [rbp - 0x10]
call fcn.1400091f0
lea rcx, [rbp - 0x30]
call fcn.1400091f0
nop
mov rcx, rdi
cmp qword [r14 + 0x68], 8
jb 0x140050966
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete cl
mov byte [rbx], cl
jne 0x1400509b0
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140024a70
nop
cmp rdi, rax
je 0x1400509a3
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050997
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x38]
call fcn.140008fe0
movzx ecx, byte [rbx]
test cl, cl
jne 0x140050b9b
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
mov dword [rsp + 0x30], 2
lea rbx, [fcn.140025400]
mov qword [rbp - 0x48], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400fb5b0
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 0x140050a41
cmp word [rbp - 0x30], 0
jne 0x140050a41
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 [0x140166ab0]
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 0x140050a61
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x68]
call fcn.140009050
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140025a60
mov dword [rsp + 0x30], 6
lea rcx, [rbp - 0x68]
call fcn.140008fe0
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.140009050
nop
lea rcx, [rsp + 0x58]
call fcn.140008fe0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140024a70
nop
lea rdi, [r14 + 0x50]
cmp rdi, rax
je 0x140050af8
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050aec
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x78]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x38]
call fcn.140008fe0
lea rdx, [0x14015ec5c]
lea rcx, [rsp + 0x78]
call fcn.140050070
mov rbx, rax
mov qword [rsp + 0x38], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
xor r8d, r8d
lea rdx, [0x14015b7e0]
lea rcx, [rsp + 0x38]
call fcn.140009050
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140024c30
nop
lea rcx, [rsp + 0x38]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x78]
call fcn.140008fe0
mov esi, 0x1c
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140022810
test eax, eax
setne al
mov byte [r14 + 0x70], al
lea rcx, [rsp + 0x58]
call fcn.140008fe0
cmp byte [r14 + 0x70], 0
je 0x140050bd6
lea rcx, [rsp + 0x78]
call fcn.14009c9f0
nop
cmp rdi, rax
je 0x140050bcc
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140050bc0
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x78]
call fcn.140008fe0
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
cmp dword [rax + 0x40], 5
jl 0x140050c66
xor ecx, ecx
call fcn.140027380
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001cc30]
mov rcx, rax
call fcn.140027650
mov rbx, rax
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400220d0
nop
or esi, 1
mov dword [rsp + 0x30], esi
cmp qword [rax + 0x18], 0x10
jb 0x140050c4e
mov rax, qword [rax]
mov r9, rax
lea r8, str.AdpSDKUtil_GetDependeciesPath:__s
mov edx, 5
mov rcx, rbx
call fcn.14001efa0
nop
test sil, 1
je 0x140050c76
lea rcx, [rsp + 0x78]
call fcn.1400091f0
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x2f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret