Function at 0x14003b3e4
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xb60
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rsp + 0xb50], rax
mov r13, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x238]
call sub.VCRUNTIME140.dll_memset
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x940]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003b47b
lea r8, [0x14008b298]
mov edx, edi
lea rcx, [rsp + 0x940]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x940]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov dword [rsp + 0x30], r15d
test rsi, rsi
je 0x14003b696
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rdx, str.Direct3DCreate9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b4b9
lea ecx, [rdi + 0x20]
call qword [0x140086148]
mov rdi, rax
mov qword [rsp + 0x40], rax
jmp 0x14003b4cf
test rdi, rdi
je 0x14003b68d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [0x140086148]
mov r15d, eax
xor r12d, r12d
lea r14d, [r12 + 0xf]
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x28]
lea r9, [rsp + 0x4f0]
xor r8d, r8d
mov edx, r12d
mov rcx, rdi
call qword [0x140086148]
mov dword [rsp + 0x30], eax
and qword [rsp + 0x58], 0
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x68], 0
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x58], 0
lea rax, [rsp + 0x8f0]
or r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x14003b543
lea rcx, [rsp + 0x58]
cmp r14, 0xf
ja 0x14003b575
mov qword [rsp + 0x68], r14
mov r8, r14
lea rdx, [rsp + 0x8f0]
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + r14 + 0x58], 0
jmp 0x14003b589
lea r9, [rsp + 0x8f0]
xor r8d, r8d
mov rdx, r14
call fcn.14000e630
nop
lea r8, [rsp + 0x4f0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.1400397e4
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14003b5e4
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b5df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b5df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e34c
and qword [rsp + 0x68], 0
mov r14d, Ordinal_16
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x58], 0
lea rcx, [r13 + 0x10]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x48]
call fcn.140039a80
inc r12d
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14003b659
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b654
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b654
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e34c
and qword [rsp + 0x90], 0
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x80], 0
cmp dword [rsp + 0x30], 0
je 0x14003b4f3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140086148]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, r15d
mov rcx, qword [rsp + 0xb50]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0xb60]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret