Function at 0x14002a630
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x428]
sub rsp, 0x520
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
call fcn.14002c530
test al, al
je 0x14002a9fd
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.1400a1560
call fcn.14004f770
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
test al, al
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x23]
jne 0x14002a6c6
lea edx, [rsi + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14002ad0c
lea rax, [rbp + 0x200]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x14002a6e2
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x70]
call fcn.14002dd30
test byte [section..custom], 1
je 0x14002a7fd
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
lea rdx, [0x140148008]
cmp byte [0x140148008], 0
jne 0x14002a733
mov r8, rsi
jmp 0x14002a740
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x14002a736
lea rcx, [rsp + 0x50]
call fcn.140009260
nop
mov r9d, 6
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400235b0
nop
mov r8, rax
lea rdx, str.OraySunloginClientLite_Custom_
lea rcx, [rbp - 0x50]
call fcn.140017620
nop
lea rcx, [rbp - 0x30]
call fcn.140009040
nop
lea rcx, [rsp + 0x50]
call fcn.140009040
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140085920
nop
cmp qword [rax + 0x18], 8
jb 0x14002a7ad
mov rax, qword [rax]
cmp word [rax], 0
jne 0x14002a7b8
mov r8, rsi
jmp 0x14002a7cb
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002a7c0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002dd30
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14002a7f4
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008b70
nop
lea rcx, [rbp - 0x50]
jmp 0x14002a8ae
mov r8d, 6
lea rdx, str.Oray_
lea rcx, [rsp + 0x70]
call fcn.14002dd30
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SUNLOGIN_PRODUCT_NAME
lea rcx, [rsp + 0x50]
call fcn.140009260
nop
lea rcx, [rsp + 0x50]
call fcn.140025db0
cmp qword [rax + 0x18], 0x10
jb 0x14002a853
mov rax, qword [rax]
lea rcx, [rbp - 8]
mov qword [rbp - 0x10], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002f170
nop
mov rdx, qword [rbp - 0x10]
cmp word [rdx], 0
jne 0x14002a87d
mov r8, rsi
jmp 0x14002a88b
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002a880
lea rcx, [rsp + 0x70]
call fcn.14002dd30
nop
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14002a8a9
call fcn.1400a24a4
nop
lea rcx, [rsp + 0x50]
call fcn.140009040
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002ad0c
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rdx], ax
jne 0x14002a900
mov rbx, rsi
jmp 0x14002a90a
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14002a900
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.140008a20
nop
lea rcx, [rsp + 0x50]
call fcn.14002a430
test al, al
sete bl
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14002a944
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140008b70
test bl, bl
je 0x14002ad0c
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140031bb0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14002a965
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea rax, str._public__GetConfigPath
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64a
lea r9, str.GetConfigPath
lea r8, str...includes_sunlogininclude_basepublic_func.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x14002ad0c
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x14002a9f3
test cl, 0x1f
je 0x14002a9c6
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002a9d5
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002a9e4
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x14002a9f0
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
jmp 0x14002ad0c
mov eax, dword [section..custom]
test al, 1
je 0x14002ac69
shr eax, 1
test al, 1
je 0x14002ac69
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.1400a1560
lea rax, [rbp + 0x200]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14002ad0c
lea rax, [rbp + 0x200]
or rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002aa60
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x70]
call fcn.14002dd30
mov r8d, 6
lea rdx, str.Oray_
lea rcx, [rsp + 0x70]
call fcn.14002dd30
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SUNLOGIN_PRODUCT_NAME
lea rcx, [rsp + 0x50]
call fcn.140009260
nop
lea rcx, [rsp + 0x50]
call fcn.140025db0
cmp qword [rax + 0x18], 0x10
jb 0x14002aad2
mov rax, qword [rax]
lea rcx, [rbp - 8]
mov qword [rbp - 0x10], rcx
mov r8d, 3
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002f170
nop
mov rdx, qword [rbp - 0x10]
cmp word [rdx], 0
jne 0x14002aafc
mov r8, rsi
jmp 0x14002ab0b
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002ab00
lea rcx, [rsp + 0x70]
call fcn.14002dd30
nop
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14002ab29
call fcn.1400a24a4
nop
lea rcx, [rsp + 0x50]
call fcn.140009040
mov r8d, 1
lea rdx, [0x1400ee130]
lea rcx, [rsp + 0x70]
call fcn.14002dd30
lea rcx, [rbp - 0x30]
call fcn.1400325c0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14002ab5e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140085920
nop
cmp qword [rax + 0x18], 8
jb 0x14002ab76
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002dc90
nop
mov rdx, qword [rax]
cmp word [rdx], 0
jne 0x14002ab91
mov r8, rsi
jmp 0x14002ab9f
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002ab94
lea rcx, [rsp + 0x70]
call fcn.14002dd30
nop
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14002abbd
call fcn.1400a24a4
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14002abda
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140008b70
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea rcx, [rbp - 0x30]
call fcn.140009040
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002ad0c
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rdx], ax
jne 0x14002ac41
mov rbx, rsi
jmp 0x14002ac4b
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14002ac41
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.140008a20
nop
lea rcx, [rsp + 0x50]
call fcn.14002a430
nop
jmp 0x14002acef
lea rcx, [rsp + 0x50]
call fcn.14002c2b0
nop
or rbx, 0xffffffffffffffff
cmp qword [rsp + 0x60], 0
jne 0x14002acd9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.1400a1560
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [rbp - 0x10], 0
jne 0x14002acb9
mov r8, rsi
jmp 0x14002accb
lea rax, [rbp - 0x10]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x14002acc0
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140008a20
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140008be0
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14002ad0c
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140008b70
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x14002ad24
mov rax, qword [rdi]
jmp 0x14002ad27
mov rax, rdi
mov word [rax], si
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140009120
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14002ad54
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140008b70
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret