Function at 0x180047060
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x1800470c4
cmp byte [0x1801934c1], 0
je 0x1800470bd
lea rdx, str.LoadPDBFile_error_1_n
mov rcx, qword [0x1801936d0]
call fcn.180002f60
xor al, al
jmp 0x180047415
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x180047100
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180003550
nop
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, rsi
cmp rax, 0xd
jb 0x180047166
lea rax, [rsi + 0xd]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x50]
lea rcx, [rbx + rsi*2]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.msdia140.dll
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x1a], r14w
jmp 0x180047185
mov qword [rsp + 0x20], reloc.WS2_32.dll_listen
lea r9, str.msdia140.dll
mov edx, reloc.WS2_32.dll_listen
lea rcx, [rsp + 0x50]
call fcn.180059c40
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1800471c8
cmp byte [0x1801934c1], al
je 0x180047259
lea rdx, str.LoadPDBFile_error_2_n
mov rcx, qword [0x1801936d0]
call fcn.180002f60
jmp 0x1800473cd
lea rdx, str.DllRegisterServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180047208
cmp byte [0x1801934c1], al
je 0x1800471f8
lea rdx, str.LoadPDBFile_error_3_n
mov rcx, qword [0x1801936d0]
call fcn.180002f60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor bl, bl
jmp 0x1800473cd
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [0x180193670]
mov qword [rsp + 0x20], rax
lea r9, [0x180180450]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800c3a00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180047260
cmp byte [0x1801934c1], 0
je 0x180047259
lea rdx, str.LoadPDBFile_error_5_n
mov rcx, qword [0x1801936d0]
call fcn.180002f60
xor bl, bl
jmp 0x1800473cd
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180047280
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180003550
nop
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, rdi
cmp rax, 0x1b
jb 0x1800472e9
lea rax, [rdi + 0x1b]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + rdi*2]
mov r8d, gethostname
lea rdx, str.Mordhau_Win64_Shipping.pdb
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x36], r14w
jmp 0x180047308
mov qword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_27
lea r9, str.Mordhau_Win64_Shipping.pdb
mov edx, reloc.WLDAP32.dll_Ordinal_27
lea rcx, [rsp + 0x30]
call fcn.180059c40
mov rcx, qword [0x180193670]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, qword [0x180193670]
mov rax, qword [rcx]
lea rdx, [0x180193660]
call qword [rax + 0x40]
test eax, eax
jns 0x18004735e
cmp byte [0x1801934c1], 0
je 0x18004735a
lea rdx, str.LoadPDBFile_error_6_n
mov rcx, qword [0x1801936d0]
call fcn.180002f60
xor bl, bl
jmp 0x180047374
mov rcx, qword [0x180193660]
mov rax, qword [rcx]
lea rdx, [0x180193668]
call qword [rax + Ordinal_41]
mov bl, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800473b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800473b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800473b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b1cf0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180047412
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004740d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004740d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b1cf0
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1800b1bb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret