Function at 0x140053830
Capabilities:
Check if file exists
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14d, r8d
xor r15d, r15d
mov dword [rsp + 0x20], r15d
cmp qword [rdx + 0x18], 8
jb 0x140053879
mov rdx, qword [rdx]
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140053894
lea rcx, [rbp - 0x50]
call fcn.1400088b0
nop
cmp qword [rbp - 0x40], 0
je 0x140053c73
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140053c73
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r15w
mov dword [rsp + 0x20], 1
lea rdi, [fcn.140025940]
mov qword [rbp - 0x58], rdi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1400ec680
lea r8, [rbp - 0x58]
mov rdx, rdi
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0x104
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140053952
cmp word [rbp + 0x20], 0
jne 0x140053952
mov dword [rbp - 0x30], 0x104
lea r9, [rbp - 0x30]
lea r8, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
lea rax, [rbp + 0x20]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140053970
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400088b0
nop
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x28]
call fcn.140025fa0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x28]
call fcn.140008840
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
lea rcx, [rbp - 8]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x28]
call fcn.140008840
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 8]
call fcn.140024f90
mov rsi, rax
lea rdi, [0x1401490f7]
test r14d, r14d
je 0x140053a01
cmp r14d, 1
je 0x1400539f8
mov rdx, rdi
jmp 0x140053a08
lea rdx, str.AdpSDKGlobal.config
jmp 0x140053a08
lea rdx, str.AdpSDK.config
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov r8, rbx
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140053a30
lea rcx, [rbp - 0x28]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.14001a690
nop
lea rcx, [rbp - 0x28]
call fcn.140008a50
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x78]
mov rcx, rsi
call fcn.140025150
mov rsi, rax
lea rdx, [rbp - 0x50]
mov rcx, rax
call fcn.140022bf0
test eax, eax
jne 0x140053a86
xor sil, sil
jmp 0x140053ad0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rbp - 0x28]
call fcn.140008840
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
cmp qword [rsi + 0x18], 8
jb 0x140053abe
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete sil
lea rcx, [rbp - 0x78]
call fcn.140008840
nop
lea rcx, [rsp + 0x48]
call fcn.140008840
nop
lea rcx, [rsp + 0x68]
call fcn.140008840
nop
lea rcx, [rbp - 8]
call fcn.140008840
test sil, sil
je 0x140053c73
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dword [rsp + 0x20], 6
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.140025ca0
nop
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140024f90
nop
lea rcx, [rsp + 0x28]
cmp rcx, rax
je 0x140053b61
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140053b53
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x68]
call fcn.140008840
nop
lea rcx, [rbp - 0x78]
call fcn.140008840
test r14d, r14d
je 0x140053b89
cmp r14d, 1
jne 0x140053b90
lea rdi, str.AdpSDKGlobal.config
jmp 0x140053b90
lea rdi, str.AdpSDK.config
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 8], 0
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140053bb4
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 8]
call fcn.14001a690
nop
lea rcx, [rbp - 8]
call fcn.140008a50
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x28]
call fcn.140025150
mov rbx, rax
lea rdx, [rbp - 0x50]
mov rcx, rax
call fcn.140022bf0
test eax, eax
je 0x140053c53
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rsp + 0x68]
call fcn.140008840
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
cmp qword [rbx + 0x18], 8
jb 0x140053c46
mov rbx, qword [rbx]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rbp - 0x28]
call fcn.140008840
nop
lea rcx, [rsp + 0x48]
call fcn.140008840
nop
lea rcx, [rsp + 0x28]
call fcn.140008840
nop
lea rcx, [rbp - 0x50]
call fcn.140008840
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret