Function at 0x180005790
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1800cd700]
xor rax, rsp
mov qword [rbp + 0x60], rax
movzx r14d, dl
mov rdi, rcx
mov rbx, qword [0x1800ce2f8]
test rbx, rbx
je 0x1800057d7
inc dword [rbx + 0xf4]
mov ecx, 0x5e48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r15d, r15d
test rax, rax
je 0x1800057f6
xor edx, edx
mov rcx, rax
call fcn.180007700
jmp 0x1800057f9
mov rax, r15
mov qword [0x1800ce2f8], rax
call fcn.18000b040
test rbx, rbx
je 0x180005813
mov qword [0x1800ce2f8], rbx
jmp 0x18000581a
mov rbx, qword [0x1800ce2f8]
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r15
or dword [rbx + 8], 0x20
lea r9, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800b5c10]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180005d9c
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.180007210
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov byte [rbp - 0x64], 1
mov dword [rbp - 0x58], 3
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x2c], 0x7f7fffff
mov dword [rbp - 0x20], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x1c], ax
mov dword [rbp - 0x5c], 0x41700000
mov rsi, qword [rbx + 0x58]
call fcn.1800a408c
lea rcx, str.tahoma.ttf
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], 0xa
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180004cc0
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800051f0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180005900
mov rcx, qword [rax]
mov qword [rbp + 0x20], rcx
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x28], rax
call fcn.1800a408c
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180007370
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea rax, [0x1800b6ad0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
movss xmm2, dword [0x1800be1d8]
mov rcx, rsi
call fcn.18002b190
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180005998
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005993
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005a35
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be2a0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], r15b
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800059e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800059e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005a35
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be280]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180005a41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005a3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005a3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a32c4
mov byte [rbp - 0x28], 1
mov rsi, qword [rbx + 0x58]
call fcn.1800a408c
lea rcx, str.malgun.ttf
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], 0xa
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180004cc0
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800051f0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180005a91
mov rcx, qword [rax]
mov qword [rbp + 0x20], rcx
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x28], rax
call fcn.1800a408c
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180007370
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea rax, [0x1800bc560]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
movss xmm2, dword [rbp - 0x5c]
mov rcx, rsi
call fcn.18002b190
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180005b26
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005b21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005bc3
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be2a0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], r15b
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180005b77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005b72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005bc3
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be280]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180005bcf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005bca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005bca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a32c4
mov rbx, qword [rbx + 0x58]
call fcn.1800a408c
lea rcx, str.msyh.ttc
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], 8
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180004cc0
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800051f0
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x180005c1b
mov rcx, qword [rax]
mov qword [rbp + 0x20], rcx
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x28], rax
call fcn.1800a408c
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x20], xmm0
lea r8, [rbp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180007370
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
lea rax, [0x1800bc538]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
movss xmm2, dword [rbp - 0x5c]
mov rcx, rbx
call fcn.18002b190
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180005cb0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005cab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d4d
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be2a0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], r15b
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180005d01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005cfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d4d
call fcn.1800a32c4
movdqa xmm0, xmmword [0x1800be280]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180005d59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005d54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005d54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a32c4
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x180005d9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005d97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005d97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800a32c4
mov rcx, qword [0x1800cd768]
mov rcx, qword [rcx]
call fcn.1800313d0
test r14b, r14b
je 0x180005f18
mov qword [0x1800ce2d8], rdi
mov rax, qword [rdi]
lea r8, [0x1800ce2a8]
lea rdx, [0x1800b6ac0]
mov rcx, rdi
call qword [rax + gethostname]
mov rcx, qword [0x1800cd760]
mov rax, qword [0x1800ce2a8]
mov qword [rcx], rax
mov rcx, qword [0x1800ce2a8]
mov rax, qword [rcx]
lea rdx, [0x1800ce2c0]
call qword [rax + 0x140]
call fcn.180005710
mov r14, qword [0x1800ce2c0]
mov rsi, qword [0x1800ce2a8]
mov rdi, qword [0x1800ce2f8]
test rdi, rdi
je 0x180005e1f
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180005e60
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x180005e63
mov rbx, r15
mov qword [rdi + 0xa0], rbx
lea rax, [0x1800bca68]
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 8
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x20], r15
mov rax, qword [rsi]
lea r8, [rbp + 0x38]
lea rdx, [0x1800bca38]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x180005ee0
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
lea rdx, [0x1800bca48]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x180005ee0
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
lea r8, [rbp + 0x20]
lea rdx, [0x1800bca58]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x180005ee0
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp + 0x20]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x180005eef
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x180005efe
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.1800300b0
jmp 0x180005f8c
mov rax, qword [0x1800cd760]
mov qword [rax + 8], rdi
mov rbx, qword [0x1800ce2f8]
test rbx, rbx
je 0x180005f35
inc dword [rbx + 0xf4]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x180005f64
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x180005f67
mov rax, r15
mov qword [rbx + 0xa0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x90], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea r8, [0x1800054c0]
mov edx, 0xfffffffc
mov rcx, qword [0x1800cd768]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x1800ce348], rax
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800a2e10
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret