Function at 0x1400976a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rdi, rcx
lea rcx, [rbp - 0x48]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400976eb
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Enter_UpdateMBUninstaller
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 9
lea rdx, str.mbuns.exe
lea rcx, [rbp - 0x28]
call fcn.140031e00
nop
lea r8, [rbp - 0x28]
mov rdx, rdi
lea rcx, [rbp + 0x90]
call fcn.1400a2f80
nop
lea rcx, [rbp - 0x28]
call fcn.1400166f0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x90]
call fcn.1400b93b0
test al, al
je 0x1400977a0
cmp dword [rsp + 0x40], 0
jne 0x1400977a0
mov al, 1
jmp 0x1400977a2
xor al, al
lea rcx, [rbp - 0x48]
test al, al
je 0x140097fb2
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400977c2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Found_mbuns.exe
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
xor esi, esi
mov dword [rsp + 0x40], esi
mov word [rbp - 0x4c], si
mov word [rsp + 0x48], si
mov word [rsp + 0x44], si
mov word [rbp - 0x50], si
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x4c]
lea rcx, [rbp + 0x90]
call fcn.1400ba000
test al, al
jne 0x1400978e7
lea rcx, [rsp + 0x50]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14009787c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Error
mov rcx, rax
call fcn.140034a00
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.140033380
mov rcx, rax
lea rdx, str._calling_GetFileVersion
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
jmp 0x140098010
lea rcx, [rbp - 0x48]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400978ff
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Build_number_of_mbuns.exe_is:
mov rcx, rax
call fcn.140034a00
movzx edi, word [rbp - 0x50]
movzx edx, di
mov rcx, rax
call fcn.140079500
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
mov eax, 0x102
cmp di, ax
jb 0x140097f52
mov eax, 0x113
cmp di, ax
jae 0x140097f52
lea rcx, [rsp + 0x50]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097992
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Updating_mbuns.exe...
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x200]
call fcn.14030b3a0
lea rdx, [rbp + 0x200]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140097a9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097a31
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Error
mov rcx, rax
call fcn.140034a00
mov edx, ebx
mov rcx, rax
call fcn.140033380
mov rcx, rax
lea rdx, str._calling_GetTempPath
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
jmp 0x140098010
mov dword [rbp - 0x4c], esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8d, 9
lea rdx, str.mbuns.exe
lea rcx, [rbp - 0x70]
call fcn.140031e00
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140097ae1
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x70]
call fcn.140031e00
nop
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 8]
call fcn.1400a2f80
nop
lea rcx, [rsp + 0x70]
call fcn.1400166f0
nop
lea rcx, [rbp - 0x70]
call fcn.1400166f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 0x8b
lea rdx, str.https:__cdn.mwbsys.com_packages_mbam_c.installer.consumer_e_7_1_a_e71a2ac2a7571e9812f22cd6a8f58e6c_d95e2c6e_af07_4066_9430_363c94b08c31.exe
lea rcx, [rbp - 0x28]
call fcn.140015370
nop
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x48]
call fcn.1400a3bc0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x60], xmm1
movdqa xmm0, xmmword [0x1404459a0]
movdqa xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movdqa xmmword [rbp + 0x80], xmm1
movdqa xmm0, xmmword [0x1404459a0]
movdqa xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov word [rbp + 0x20], 0
mov word [rbp + 0x48], si
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp + 0xb0]
call fcn.14030b3a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 9
lea rdx, str.MBUpdater
lea rcx, [rsp + 0x50]
call fcn.140015370
nop
lea r9, [rbp + 0x20]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0xb0]
call fcn.1400c18f0
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x140097c63
mov edx, 0x1388
call fcn.140100850
mov dword [rbp + 0xbc], 0x1388
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x140097c63
mov edx, 0x2710
call fcn.1401008b0
mov dword [rbp + 0xc4], 0x2710
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], 0
lea r9, [rbp - 0x4c]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0xb0]
call fcn.1400c3330
lea rcx, [rsp + 0x50]
test al, al
je 0x140097e87
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097cab
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Successfully_downloaded_new_mbuns.exe
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
mov byte [rbp - 0x50], 0
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rcx, qword [rbp - 8]
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0x50]
call fcn.1400f7f00
test eax, eax
jne 0x140097e26
cmp byte [rbp - 0x50], al
je 0x140097e26
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 8]
call fcn.1400ba610
lea rcx, [rsp + 0x50]
test al, al
je 0x140097dac
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097d61
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Successfully_copied_new_mbuns.exe
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
jmp 0x140097eec
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097dc0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Error
mov rcx, rax
call fcn.140034a00
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.140033380
mov rcx, rax
lea rdx, str._calling_Copy
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
jmp 0x140097eec
lea rcx, [rsp + 0x50]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097e3f
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Failed_to_verify_file_mbuns.exe
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
jmp 0x140097eec
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097e9b
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Download_of_mbuns.exe_failed._Status_code:
mov rcx, rax
call fcn.140034a00
mov edx, dword [rbp - 0x4c]
mov rcx, rax
call fcn.140047c40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 8]
call fcn.1400ba850
nop
lea rcx, [rbp + 0xb0]
call fcn.1400c1ac0
nop
lea rcx, [rbp + 0x70]
call fcn.140016400
nop
lea rcx, [rbp + 0x50]
call fcn.140016400
nop
lea rcx, [rbp + 0x28]
call fcn.140016400
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
nop
lea rcx, [rbp - 0x28]
call fcn.140016400
nop
lea rcx, [rbp - 8]
call fcn.1400166f0
jmp 0x140098016
lea rcx, [rbp - 0x48]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097f6a
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.Not_updating_mbuns.exe__already_updated_
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
jmp 0x14009800c
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140097fc6
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
lea rdx, str.File_mbuns.exe_not_found
mov rcx, rax
call fcn.140034a00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
nop
lea rcx, [rbp + 0x90]
call fcn.1400166f0
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret