Function at 0x140057340
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov edi, r8d
xor r14d, r14d
mov dword [rsp + 0x20], r14d
cmp qword [rdx + 0x18], 8
jb 0x140057383
mov rdx, qword [rdx]
mov qword [rbp - 8], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400573a2
lea rcx, [rbp - 8]
call fcn.140008ee0
nop
cmp qword [rbp + 8], 0
je 0x14005765a
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14005765a
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
mov dword [rsp + 0x20], 1
lea rsi, [fcn.140024cd0]
mov qword [rbp - 0x18], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1400fc160
lea r8, [rbp - 0x18]
mov rdx, rsi
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0x104
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140057468
cmp word [rbp + 0x20], 0
jne 0x140057468
mov dword [rbp - 0x10], 0x104
lea r9, [rbp - 0x10]
lea r8, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
lea rax, [rbp + 0x20]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140057485
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140008ee0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.140025330
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x28]
call fcn.140008e70
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x68]
call fcn.140008e70
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call fcn.140024330
mov rbx, rax
lea rsi, [0x14015892f]
test edi, edi
je 0x14005751c
cmp edi, 1
je 0x140057513
mov rdx, rsi
jmp 0x140057523
lea rdx, str.AdpSDKGlobal.config
jmp 0x140057523
lea rdx, str.AdpSDK.config
lea rcx, [rbp - 0x78]
call fcn.140021910
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.140024500
nop
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.140026230
movzx ebx, al
lea rcx, [rbp - 0x58]
call fcn.140008e70
nop
lea rcx, [rbp - 0x78]
call fcn.140008e70
nop
lea rcx, [rbp - 0x38]
call fcn.140008e70
nop
lea rcx, [rsp + 0x48]
call fcn.140008e70
test bl, bl
jne 0x14005765a
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
mov dword [rsp + 0x20], 6
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140025040
nop
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140024330
nop
lea rcx, [rsp + 0x28]
cmp rcx, rax
je 0x1400575e0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400575d2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140008ee0
nop
lea rcx, [rbp - 0x38]
call fcn.140008e70
nop
lea rcx, [rbp - 0x58]
call fcn.140008e70
test edi, edi
je 0x140057605
cmp edi, 1
jne 0x14005760c
lea rsi, str.AdpSDKGlobal.config
jmp 0x14005760c
lea rsi, str.AdpSDK.config
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.140021910
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140024500
nop
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.140026230
nop
lea rcx, [rsp + 0x48]
call fcn.140008e70
nop
lea rcx, [rbp - 0x78]
call fcn.140008e70
nop
lea rcx, [rsp + 0x28]
call fcn.140008e70
nop
lea rcx, [rbp - 8]
call fcn.140008e70
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400f9560
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret