Function at 0x1400538d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, rcx
xor r15b, r15b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.140286140
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140053c6f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x78], xmm1
xor r14d, r14d
mov word [rsp + 0x68], r14w
lea r8d, [r14 + 0xc]
lea rdx, str.Kernel32.dll
lea rcx, [rsp + 0x68]
call fcn.14000d3a0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], r14w
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400539a0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000d3a0
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x70]
call fcn.140082ed0
nop
lea rcx, [rsp + 0x48]
call fcn.14000c340
nop
lea rcx, [rsp + 0x68]
call fcn.14000c340
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
lea rcx, [rbp - 0x70]
call fcn.14000c340
test rsi, rsi
je 0x140053c3a
lea rdx, str.InstallELAMCertificateInfo
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140053a67
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.14000b590
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, rbx
lea rcx, [0x14047aa00]
call fcn.14000b740
lea rdx, str.GetProcAddress_failed:
jmp 0x140053ca4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], r14w
mov r8d, ntohl
lea rdx, str.mbamelam.sys
lea rcx, [rsp + 0x68]
call fcn.14000d3a0
nop
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140082ed0
nop
lea rcx, [rsp + 0x68]
call fcn.14000c340
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 1
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140053b74
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.14000b590
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, rbx
lea rcx, [0x14047aa00]
call fcn.14000b740
mov rcx, rax
lea rdx, str.CreateFile_failed__error:
call fcn.140036d30
mov rcx, rax
mov edx, edi
call fcn.1400283a0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r15b, r15b
jmp 0x140053c28
mov rcx, r14
call rbx
lea rcx, [rsp + 0x48]
cmp eax, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jne 0x140053bb6
mov r15b, 1
call fcn.14000b590
nop
mov rdx, rax
lea rcx, [0x14047aa00]
call fcn.14000b740
mov rcx, rax
lea rdx, str.InstallELAMCertificateInfo_succeeded
call fcn.140036d30
jmp 0x140053bee
call fcn.14000b590
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, rbx
lea rcx, [0x14047aa00]
call fcn.14000b740
mov rcx, rax
lea rdx, str.InstallELAMCertificateInfo_failed__error:
call fcn.140036d30
mov rcx, rax
mov edx, edi
call fcn.1400283a0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rbp - 0x50]
call fcn.14000c340
movzx eax, r15b
jmp 0x140053cdf
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.14000b590
nop
mov rdx, rax
lea rcx, [0x14047aa00]
call fcn.14000b740
mov rcx, rax
lea rdx, str.NULL_lib_handle
call fcn.140036d30
jmp 0x140053cb6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.14000b590
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, rbx
lea rcx, [0x14047aa00]
call fcn.14000b740
lea rdx, str.Error:_Could_not_get_SystemDir:
mov rcx, rax
call fcn.140036d30
mov edx, edi
mov rcx, rax
call fcn.1400283a0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x2f0]
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