Function at 0x14004d7b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov r14d, r15d
mov dword [rsp + 0x30], r15d
mov byte [rdx], r14b
cmp qword [rcx + 0x188], r14
je 0x14004d8b5
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rdx, [0x1401490f7]
test r8, r8
cmovne rdx, r8
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], r15b
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14004d836
lea rcx, [rbp - 0x60]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.14001a690
nop
lea rcx, [rbp - 0x60]
call fcn.140008a50
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsi + 0x178]
call fcn.140025150
cmp qword [rax + 0x18], 8
jb 0x14004d883
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 + 0x38]
call fcn.140008840
nop
lea rcx, [rsp + 0x58]
call fcn.140008840
lea rax, [rsi + 0x178]
jmp 0x14004dc79
test r8, r8
je 0x14004d9e0
mov rdx, r8
lea rcx, [rbp - 0x30]
call fcn.14008bfe0
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14008d4e0
nop
lea rdi, [rsi + 0x178]
cmp rdi, rax
je 0x14004d902
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004d8f6
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x38]
call fcn.140008840
nop
lea rcx, [rbp - 0x30]
call fcn.14008e580
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x14004d928
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x108], r15
lea rcx, [rbp + 0xb0]
call fcn.140008840
lea rcx, [rbp + 0x90]
call fcn.140008840
lea rcx, [rbp + 0x70]
call fcn.140008a50
lea rcx, [rbp + 0x50]
call fcn.140008a50
lea rcx, [rbp + 0x30]
call fcn.140008a50
lea rcx, [rbp + 0x10]
call fcn.140008a50
lea rcx, [rbp - 0x10]
call fcn.140008a50
lea rcx, [rbp - 0x30]
call fcn.140008a50
nop
mov rcx, rdi
cmp qword [rsi + 0x190], 8
jb 0x14004d98e
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete cl
mov byte [rbx], cl
jne 0x14004d9d8
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140024f90
nop
cmp rdi, rax
je 0x14004d9cb
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004d9bf
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x38]
call fcn.140008840
movzx ecx, byte [rbx]
test cl, cl
jne 0x14004dbbd
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x30], 1
lea rbx, [fcn.140025940]
mov qword [rbp - 0x68], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400ec680
lea r8, [rbp - 0x68]
mov rdx, rbx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14004da65
cmp word [rbp - 0x30], 0
jne 0x14004da65
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 [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14004da84
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400088b0
nop
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.140025fa0
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x58]
call fcn.140008840
nop
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x60]
call fcn.140008840
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140024f90
nop
lea rdi, [rsi + 0x178]
cmp rdi, rax
je 0x14004db1b
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004db0f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x78]
call fcn.140008840
nop
lea rcx, [rsp + 0x38]
call fcn.140008840
lea rdx, [0x14014f594]
lea rcx, [rsp + 0x78]
call fcn.14004cc80
mov rbx, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x14014ce5c]
lea rcx, [rsp + 0x38]
call fcn.1400088b0
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140025150
nop
lea rcx, [rsp + 0x38]
call fcn.140008840
nop
lea rcx, [rsp + 0x78]
call fcn.140008840
mov r14d, reloc.WS2_32.dll_ntohl
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140022bf0
test eax, eax
setne al
mov byte [rsi + 0x198], al
lea rcx, [rsp + 0x58]
call fcn.140008840
cmp byte [rsi + 0x198], 0
je 0x14004dbfa
lea rcx, [rsp + 0x78]
call fcn.14008c680
nop
cmp rdi, rax
je 0x14004dbf0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004dbe4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400088b0
nop
lea rcx, [rsp + 0x78]
call fcn.140008840
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov rbx, rax
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
or r14d, 0x10
mov dword [rsp + 0x30], r14d
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.14001a4c0
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r9, qword [rbp - 0x60]
lea r8, str.AdpSDKUtil_GetDependeciesPath:__s
mov edx, 5
mov rcx, rbx
call fcn.14001de90
nop
lea rcx, [rbp - 0x60]
call fcn.140008a50
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x338]
add rsp, 0x2f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret