Function at 0x140057bb0
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 [0x140189090]
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 0x140057bf3
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 0x140057c12
lea rcx, [rbp - 8]
call fcn.140009050
nop
cmp qword [rbp + 8], 0
je 0x140057eca
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 0x140057eca
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
mov dword [rsp + 0x20], 1
lea rsi, [fcn.140025400]
mov qword [rbp - 0x18], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1400fb5b0
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 0x140057cd8
cmp word [rbp + 0x20], 0
jne 0x140057cd8
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 [0x140166ab0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
lea rax, [rbp + 0x20]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140057cf5
mov r8, rbx
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.140025a60
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x28]
call fcn.140008fe0
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.140009050
nop
lea rcx, [rsp + 0x68]
call fcn.140008fe0
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call fcn.140024a70
mov rbx, rax
lea rsi, [0x1401578ef]
test edi, edi
je 0x140057d8c
cmp edi, 1
je 0x140057d83
mov rdx, rsi
jmp 0x140057d93
lea rdx, str.AdpSDKGlobal.config
jmp 0x140057d93
lea rdx, str.AdpSDK.config
lea rcx, [rbp - 0x78]
call fcn.140022020
nop
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.140024c30
nop
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.1400265c0
movzx ebx, al
lea rcx, [rbp - 0x58]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x78]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x38]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x48]
call fcn.140008fe0
test bl, bl
jne 0x140057eca
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140166ab0]
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.140025770
nop
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140024a70
nop
lea rcx, [rsp + 0x28]
cmp rcx, rax
je 0x140057e50
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140057e42
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea rcx, [rbp - 0x38]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x58]
call fcn.140008fe0
test edi, edi
je 0x140057e75
cmp edi, 1
jne 0x140057e7c
lea rsi, str.AdpSDKGlobal.config
jmp 0x140057e7c
lea rsi, str.AdpSDK.config
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.140022020
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140024c30
nop
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.1400265c0
nop
lea rcx, [rsp + 0x48]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x78]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
nop
lea rcx, [rbp - 8]
call fcn.140008fe0
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret