Function at 0x140041d50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r15d, r15d
lea rdx, [0x1400776c0]
lea ecx, [r15 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140041da3
xor al, al
jmp 0x1400421f9
mov qword [0x14007765c], r15
mov qword [0x140077668], 1
mov qword [0x140077684], r15
mov dword [0x14007768c], r15d
cvttss2si rax, dword [0x1400776e0]
mov dword [0x140077650], eax
cvttss2si rax, dword [0x140077648]
mov dword [0x140077654], eax
mov dword [0x140077658], 0x15
mov dword [0x140077664], r15d
mov dword [0x140077680], 0x50
mov dword [0x14007767c], 1
mov r9, qword [0x140077788]
mov qword [0x140077670], r9
mov dword [0x140077678], 1
mov rcx, qword [0x1400776c0]
mov rax, qword [rcx]
lea rdx, [0x140077790]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140077650]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
call fcn.1400056a0
mov r14, qword [0x140077570]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140041e90
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140042225
mov qword [rsp + 0x58], 0xf
cmp rbx, 0x10
jae 0x140041edb
mov qword [rsp + 0x50], rbx
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x40], r15b
jmp 0x140041f76
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140041f10
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400457a8
test rax, rax
je 0x140041f3b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140041f54
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140041f42
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004222b
jmp 0x140041ef5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140041f51
call fcn.1400457a8
mov rsi, rax
jmp 0x140041f54
mov rsi, r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], r15b
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x12
jb 0x140041fc7
lea rax, [rcx + 0x12]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x12
lea rdx, str.Fonts_segoeui.ttf
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x12], 0
lea rax, [rsp + 0x40]
jmp 0x140041fe6
mov qword [rsp + 0x20], 0x12
lea r9, str.Fonts_segoeui.ttf
mov edx, 0x12
lea rcx, [rsp + 0x40]
call fcn.140044440
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140042057
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042052
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042052
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400455b4
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
movss xmm2, dword [0x14004c0cc]
mov rcx, qword [r14 + 0xa0]
call fcn.140020b20
mov rbx, qword [0x140077788]
lea rcx, [0x140077770]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140042187
lea rcx, [0x140077768]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140042187
mov qword [0x140077760], rbx
mov rcx, qword [0x140077570]
or dword [rcx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0x108], rbx
mov dword [rcx + 0x3c], 9
mov dword [rcx + 0x40], 0x25
mov dword [rcx + 0x44], 0x27
mov dword [rcx + 0x48], 0x26
mov dword [rcx + 0x4c], 0x28
mov dword [rcx + 0x50], 0x21
mov dword [rcx + 0x54], 0x22
mov dword [rcx + 0x58], 0x24
mov dword [rcx + 0x5c], 0x23
mov dword [rcx + 0x60], 0x2d
mov dword [rcx + 0x64], 0x2e
mov dword [rcx + 0x68], 8
mov dword [rcx + 0x6c], 0x20
mov dword [rcx + 0x70], 0xd
mov dword [rcx + 0x74], 0x1b
mov dword [rcx + 0x78], 0x41
mov dword [rcx + 0x7c], 0x43
mov dword [rcx + 0x80], 0x56
mov dword [rcx + 0x84], 0x58
mov dword [rcx + 0x88], 0x59
mov dword [rcx + 0x8c], 0x5a
jmp 0x14004218e
mov rcx, qword [0x140077570]
mov rax, qword [0x140077790]
lea rdx, str.imgui_impl_dx9
mov qword [rcx + 0xe0], rdx
mov qword [0x140077750], rax
mov rcx, qword [0x1400776c0]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400421f7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400421f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400421f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400455b4
mov al, 1
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140045190
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140037760
int3
call fcn.1400376c0
int3