Function at 0x1400420d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa10
mov rax, qword [0x1400ee100]
xor rax, rsp
mov qword [rsp + 0xa00], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.util.dll_int___cdecl_CmGetProcessID_void_]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0x150]
call fcn.140041a20
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea r8, [0x1400f4c98]
lea rdx, str.wmlhost_crash_
lea rcx, [rsp + 0x130]
call fcn.14003d3d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [0x1400d5764]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x110]
call fcn.14003d4a0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [0x1400f4e80]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xf0]
call fcn.14000c1b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, [0x1400d5754]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
call fcn.14003d4a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call fcn.14000c210
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0xa28]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x198]
call fcn.14003d4a0
nop
lea rcx, [rsp + 0xb0]
call fcn.14000a910
nop
lea rcx, [rsp + 0xd0]
call fcn.14000a910
nop
lea rcx, [rsp + 0xf0]
call fcn.14000a910
nop
lea rcx, [rsp + 0x110]
call fcn.14000a910
nop
lea rcx, [rsp + 0x130]
call fcn.14000a910
nop
lea rcx, [rsp + 0x150]
call fcn.14000a910
lea rax, [rsp + 0x200]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea rdx, [rsp + 0x200]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp rax, 0x800
jae 0x140042325
cmp dword [rsp + 0x24], 0
jbe 0x140042325
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x1d8]
call fcn.14000aa20
nop
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x1d8]
call fcn.14000a850
lea rdx, [rsp + 0x1d8]
mov rcx, qword [rsp + 0xa20]
call fcn.14000a9a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x1d8]
call fcn.14000a910
nop
lea rcx, [rsp + 0x198]
call fcn.14000a910
mov rax, qword [rsp + 0xa20]
jmp 0x1400424dd
mov qword [rsp + 0x190], 0
mov dword [rsp + 0x2c], 6
lea r8, [rsp + 0x190]
lea rdx, [0x1400f4c98]
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140042397
lea rdx, [rsp + 0x198]
mov rcx, qword [rsp + 0xa20]
call fcn.14000a9a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x198]
call fcn.14000a910
mov rax, qword [rsp + 0xa20]
jmp 0x1400424dd
mov r8d, 0x800
lea rdx, [rsp + 0x200]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1400423f8
lea rdx, [rsp + 0x198]
mov rcx, qword [rsp + 0xa20]
call fcn.14000a9a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x198]
call fcn.14000a910
mov rax, qword [rsp + 0xa20]
jmp 0x1400424dd
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x1b8]
call fcn.14000aa20
nop
mov r8, 0xffffffffffffffff
mov dl, 0x5c
lea rcx, [rsp + 0x1b8]
call fcn.140021b90
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x140042443
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x1b8]
call fcn.140042f70
lea r8, [rsp + 0x198]
lea rdx, [0x1400d5774]
lea rcx, [rsp + 0x170]
call fcn.14003d3d0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x1b8]
call fcn.14000a850
nop
lea rcx, [rsp + 0x170]
call fcn.14000a910
lea rdx, [rsp + 0x1b8]
mov rcx, qword [rsp + 0xa20]
call fcn.14000a9a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x1b8]
call fcn.14000a910
nop
lea rcx, [rsp + 0x198]
call fcn.14000a910
mov rax, qword [rsp + 0xa20]
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.14004f810
add rsp, 0xa10
pop rdi
ret