Function at 0x14004b840
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x38], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14004b87f
xor eax, eax
jmp 0x14004baf5
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
lea rdx, [0x1400efd9c]
mov rcx, qword [rsp + 0xc0]
call fcn.1400993d0
test rax, rax
je 0x14004b8f4
cmp qword [rsp + 0x38], 0
je 0x14004b8d2
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
jmp 0x14004b8e5
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
jmp 0x14004baf0
cmp qword [rsp + 0x38], 0
je 0x14004b931
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004b931
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
jmp 0x14004baf0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14004baf0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x14004b963
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
add rax, qword [rsp + 0x90]
mov rcx, rax
call qword [fcn.140095e10]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14004bae5
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14004bae5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x14004b9df
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
movzx edx, word [0x1400efdc0]
mov word [rcx + rax], dx
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x14004ba2f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp byte [rsp + 0x20], 0
jne 0x14004ba69
cmp qword [rsp + 0x38], 0
je 0x14004bac5
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
jmp 0x14004bad8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x28]
call qword [fcn.140095dfc]
mov rax, qword [rsp + 0x60]
add rsp, 0xb8
ret