Function at 0x1400a1d30
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x140278eb8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, ecx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.140187880
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, eax
cmp rdx, 0xa
jb 0x1400a1dc1
lfence
test eax, eax
je 0x1400a1d9d
lea rcx, [rsp + 0x30]
add rcx, rdx
nop dword [rax]
cmp byte [rcx], 0x5c
je 0x1400a1d9d
dec rcx
add eax, 0xffffffff
jne 0x1400a1d90
mov eax, eax
lea rcx, [rsp + 0x30]
add rcx, rax
lea rdx, str.mfpmp.exe
mov r8d, 7
call fcn.1401b50d0
test eax, eax
je 0x1400a236b
cmp qword [0x14027cbf8], 0
jne 0x1400a236b
cmp qword [0x14027caf0], 0
jne 0x1400a236b
cmp qword [0x14027cbe8], 0
jne 0x1400a236b
cmp qword [0x14027cc00], 0
jne 0x1400a236b
cmp qword [0x14027cc08], 0
jne 0x1400a236b
cmp qword [0x14027cc10], 0
jne 0x1400a236b
mov qword [rsp + 0x188], rbx
xor ebx, ebx
mov qword [rsp + 0x190], rbp
test edi, edi
mov qword [rsp + 0x198], rsi
mov ebp, ebx
mov qword [rsp + 0x168], r12
mov esi, 0x800
mov qword [rsp + 0x160], r13
cmovne esi, ebx
mov qword [rsp + 0x158], r14
mov r12d, ebx
mov qword [rsp + 0x150], r15
mov r14d, ebx
mov dword [rsp + 0x24], esi
mov r15d, ebx
mov dword [0x140278c80], ebx
je 0x1400a1eff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
lea ecx, [rax + 1]
lea rdx, [rcx*2 + 0x14]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
jne 0x1400a1ea5
mov edi, dword [rsp + 0x20]
mov r13d, ebx
jmp 0x1400a1f06
mov edx, edi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
lea ecx, [r9 - 1]
cmp word [r13 + rcx*2], 0x5c
je 0x1400a1ece
mov eax, 0x5c
mov word [r13 + r9*2], ax
inc r9d
mov edx, ebx
lea r8, str.msasn1.dll
nop word [rax + rax]
movzx eax, word [r8]
lea ecx, [rdx + r9]
inc edx
mov word [r13 + rcx*2], ax
lea r8, [r8 + 2]
cmp edx, 0xa
jb 0x1400a1ee0
mov edi, dword [rsp + 0x20]
jmp 0x1400a1f06
lea r13, str.msasn1.dll
mov r8d, esi
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cbf8], rax
test rax, rax
jne 0x1400a1f2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
test edi, edi
je 0x1400a1fbe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
lea ecx, [rax + 1]
lea rdx, [rcx*2 + 0x18]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x1400a1f6a
mov edi, dword [rsp + 0x20]
mov r14, rbx
jmp 0x1400a1fc5
mov edx, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
lea ecx, [r9 - 1]
cmp word [r14 + rcx*2], 0x5c
je 0x1400a1f91
mov eax, 0x5c
mov word [r14 + r9*2], ax
inc r9d
mov edx, ebx
lea r8, str.cryptnet.dll
nop word [rax + rax]
movzx eax, word [r8]
lea ecx, [rdx + r9]
inc edx
mov word [r14 + rcx*2], ax
lea r8, [r8 + 2]
cmp edx, 0xc
jb 0x1400a1fa0
mov edi, dword [rsp + 0x20]
jmp 0x1400a1fc5
lea r14, str.cryptnet.dll
mov r8d, esi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cbf0], rax
test rax, rax
jne 0x1400a1fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
test edi, edi
je 0x1400a207e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
lea ecx, [rax + 1]
lea rdx, [rcx*2 + 0x18]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
jne 0x1400a2029
mov edi, dword [rsp + 0x20]
mov r15, rbx
jmp 0x1400a2085
mov edx, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
lea ecx, [r9 - 1]
cmp word [r15 + rcx*2], 0x5c
je 0x1400a2050
mov eax, 0x5c
mov word [r15 + r9*2], ax
inc r9d
mov edx, ebx
lea r8, str.drvstore.dll
nop dword [rax]
movzx eax, word [r8]
lea ecx, [rdx + r9]
inc edx
mov word [r15 + rcx*2], ax
lea r8, [r8 + 2]
cmp edx, 0xc
jb 0x1400a2060
mov edi, dword [rsp + 0x20]
jmp 0x1400a2085
lea r15, str.drvstore.dll
mov r8d, esi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cc00], rax
test rax, rax
jne 0x1400a20ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
test edi, edi
je 0x1400a213e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
lea ecx, [rax + 1]
lea rdx, [rcx*2 + 0x14]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
jne 0x1400a20e9
mov edi, dword [rsp + 0x20]
mov r12, rbx
jmp 0x1400a2145
mov edx, edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
lea ecx, [r9 - 1]
cmp word [r12 + rcx*2], 0x5c
je 0x1400a2110
mov eax, 0x5c
mov word [r12 + r9*2], ax
inc r9d
mov edx, ebx
lea r8, str.devobj.dll
nop dword [rax]
movzx eax, word [r8]
lea ecx, [rdx + r9]
inc edx
mov word [r12 + rcx*2], ax
lea r8, [r8 + 2]
cmp edx, 0xa
jb 0x1400a2120
mov edi, dword [rsp + 0x20]
jmp 0x1400a2145
lea r12, str.devobj.dll
mov r8d, esi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cc08], rax
test rax, rax
jne 0x1400a216e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
test edi, edi
je 0x1400a21fe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
lea ecx, [rax + 1]
lea rdx, [rcx*2 + 0x10]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
jne 0x1400a21a9
mov edi, dword [rsp + 0x20]
mov rbp, rbx
jmp 0x1400a2205
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
lea ecx, [r9 - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x1400a21d1
mov eax, 0x5c
mov word [rbp + r9*2], ax
inc r9d
mov edx, ebx
lea r8, str.wldp.dll
nop word [rax + rax]
movzx eax, word [r8]
lea ecx, [rdx + r9]
inc edx
mov word [rbp + rcx*2], ax
lea r8, [r8 + 2]
cmp edx, 8
jb 0x1400a21e0
mov edi, dword [rsp + 0x20]
jmp 0x1400a2205
lea rbp, str.wldp.dll
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cc10], rax
test rax, rax
jne 0x1400a222e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
test edi, edi
je 0x1400a22c3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov esi, eax
lea edx, [rax + 1]
lea rdx, [rdx*2 + 0x1a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400a226a
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
jmp 0x1400a22ca
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rdi + rcx*2], 0x5c
je 0x1400a2290
mov eax, 0x5c
mov word [rdi + r8*2], ax
inc r8d
mov edx, ebx
lea rbx, str.cryptbase.dll
nop dword [rax]
movzx eax, word [rbx]
lea ecx, [rdx + r8]
inc edx
mov word [rdi + rcx*2], ax
lea rbx, [rbx + 2]
cmp edx, 0xd
jb 0x1400a22a0
mov esi, dword [rsp + 0x24]
mov rbx, rdi
mov edi, dword [rsp + 0x20]
jmp 0x1400a22ca
lea rbx, str.cryptbase.dll
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14027cbe8], rax
test rax, rax
jne 0x1400a22ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400a22f9
mov dword [0x140278c80], 1
mov rsi, qword [rsp + 0x198]
test edi, edi
je 0x1400a233b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x158]
mov r13, qword [rsp + 0x160]
mov r12, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x188]
mov r15, qword [rsp + 0x150]
mov eax, dword [0x140278c80]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140157570
add rsp, 0x170
pop rdi
ret