Function at 0x1400a1160
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, r8
mov r15, rdx
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400224a0
nop
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140022710
test eax, eax
je 0x1400a13b1
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400248f0
mov r14, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400a11db
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [r14 + 0x18]
cmp eax, 1
jne 0x1400a11fe
cmp rcx, 7
jbe 0x1400a11f3
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1400a122b
mov rdx, r14
cmp rcx, 7
jbe 0x1400a120a
mov rdx, qword [r14]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1400a122b
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, r14
call fcn.140026260
nop
lea rcx, [rbp - 0x68]
call fcn.140009810
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400a1251
mov rcx, qword [rsi]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r14d, eax
test eax, eax
je 0x1400a1277
xor r8d, r8d
mov edx, dword [0x1401c73d0]
lea rcx, [rsp + 0x78]
call fcn.140026260
test r14d, r14d
jne 0x1400a13b1
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a12af
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a12b2
mov rax, rdi
cmp dword [rax + 0x40], 2
jl 0x1400a1375
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a12ec
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rdi, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.14002c970
mov r14, rax
mov dword [rsp + 0x30], 0x20
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1310
mov r14, qword [rax]
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.1400220b0
mov r15, rax
mov dword [rsp + 0x30], 0x60
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1333
mov r15, qword [rax]
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.1400220b0
nop
mov ebx, 0xe0
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1353
mov rax, qword [rax]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r9, rax
lea r8, str.Update:_Cannot_rename__s_to__s.__s
mov edx, 2
mov rcx, rdi
call fcn.14001ef20
nop
test bl, bl
jns 0x1400a1387
btr ebx, 7
lea rcx, [rbp - 0x68]
call fcn.140009880
nop
test bl, 0x40
je 0x1400a1399
and ebx, 0xffffffbf
lea rcx, [rbp - 0x48]
call fcn.140009880
nop
test bl, 0x20
je 0x1400a19e6
lea rcx, [rsp + 0x38]
call fcn.140009880
jmp 0x1400a19e6
lea r8, str.update
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.140025030
nop
lea rax, str.AdpSDKCore.dll
mov qword [rbp - 8], rax
lea rax, str.AdpSDKUI.dll
mov qword [rbp], rax
lea r14, [rbp - 8]
nop
mov rax, qword [r14]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], di
lea rdx, [0x14018f4cd]
test rax, rax
cmovne rdx, rax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1400a1420
lea rcx, [rbp - 0x48]
call fcn.14000c1a0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x48]
call fcn.14001b670
nop
lea rcx, [rbp - 0x48]
call fcn.140009880
nop
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x68]
mov rcx, r15
call fcn.140024af0
nop
lea rcx, [rsp + 0x38]
call fcn.140009810
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.140022d20
test al, al
je 0x1400a170c
lea rcx, [rbp - 0x68]
call fcn.140009810
add r14, 8
lea rax, [rbp + 8]
cmp r14, rax
jne 0x1400a13e0
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.140022710
test eax, eax
je 0x1400a155d
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.1400248f0
mov r14, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400a14c8
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [r14 + 0x18]
cmp eax, 1
jne 0x1400a14eb
cmp rcx, 7
jbe 0x1400a14e0
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1400a1518
mov rdx, r14
cmp rcx, 7
jbe 0x1400a14f7
mov rdx, qword [r14]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1400a1518
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, r14
call fcn.140026260
nop
lea rcx, [rbp - 0x68]
call fcn.140009810
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400a152e
mov rdx, qword [rsi]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400a1593
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rsi
call fcn.140026260
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a16c3
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a16c6
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a15c2
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a15c5
mov rax, rdi
cmp dword [rax + 0x40], 2
jl 0x1400a1687
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a15ff
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rdi, rax
mov edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.14002c970
mov r14, rax
mov dword [rsp + 0x30], 4
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1623
mov r14, qword [rax]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.1400220b0
mov rsi, rax
mov dword [rsp + 0x30], recvfrom
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1644
mov rsi, qword [rax]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x28]
call fcn.1400220b0
nop
mov ebx, 0x1c
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x1400a1665
mov rax, qword [rax]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov r9, rax
lea r8, str.Update:_Cannot_rename__s_to__s.__s
mov edx, 2
mov rcx, rdi
call fcn.14001ef20
nop
test bl, 0x10
je 0x1400a1699
and ebx, 0xffffffef
lea rcx, [rbp - 0x68]
call fcn.140009880
nop
test bl, 8
je 0x1400a16ab
and ebx, 0xfffffff7
lea rcx, [rbp - 0x48]
call fcn.140009880
nop
test bl, 4
je 0x1400a19dc
lea rcx, [rsp + 0x38]
call fcn.140009880
jmp 0x1400a19dc
mov rax, rdi
cmp dword [rax + 0x40], 4
jl 0x1400a19dc
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a1700
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rdi, rax
lea r8, str.Update:_Old_SDK_support_applied
jmp 0x1400a19ce
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a173b
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a173e
mov rax, rdi
cmp dword [rax + 0x40], 2
jl 0x1400a17df
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a177a
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov r15, rax
jmp 0x1400a177d
mov r15, rdi
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.14002c970
mov r14, rax
mov dword [rsp + 0x30], 1
cmp qword [rax + 0x18], 0xf
jbe 0x1400a17a1
mov r14, qword [rax]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.1400220b0
nop
mov ebx, 3
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0xf
jbe 0x1400a17c2
mov rax, qword [rax]
mov qword [rsp + 0x20], r14
mov r9, rax
lea r8, str.Update:_Cannot_copy_file__s.__s
mov edx, 2
mov rcx, r15
call fcn.14001ef20
nop
test bl, 2
je 0x1400a17f1
and ebx, 0xfffffffd
lea rcx, [rbp - 0x48]
call fcn.140009880
nop
test bl, 1
je 0x1400a1801
lea rcx, [rsp + 0x58]
call fcn.140009880
nop
lea rcx, [rbp - 0x68]
call fcn.140009810
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a1839
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a183c
mov rax, rdi
cmp dword [rax + 0x40], 4
jl 0x1400a1888
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a1871
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a1874
mov rax, rdi
lea r8, str.Update:_Failed_to_apply_Old_SDK_support._Rollback...
mov edx, 4
mov rcx, rax
call fcn.14001ef20
lea rcx, [rbp - 0x28]
call fcn.140026460
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140022710
test eax, eax
je 0x1400a195f
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400248f0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400a18c3
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x1400a18e6
cmp rcx, 7
jbe 0x1400a18db
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1400a1913
mov rdx, rbx
cmp rcx, 7
jbe 0x1400a18f2
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1400a1913
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rbx
call fcn.140026260
nop
lea rcx, [rsp + 0x58]
call fcn.140009810
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400a192a
mov rdx, qword [rsi]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400a19dc
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rsi
call fcn.140026260
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a198e
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x1400a1991
mov rax, rdi
cmp dword [rax + 0x40], 4
jl 0x1400a19dc
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x1400a19c7
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rdi, rax
lea r8, str.Update:_rollback_successful
mov edx, 4
mov rcx, rdi
call fcn.14001ef20
nop
lea rcx, [rbp - 0x28]
call fcn.140009810
nop
lea rcx, [rsp + 0x78]
call fcn.140009810
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret