Function at 0x14000b980
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402cb768]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rsi, rcx
call fcn.140036888
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000b9d6
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000b9fd
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000ba24
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000ba4b
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
mov r15, rax
lea rcx, [rax + 0x18]
mov qword [rsp + 0x80], rcx
lea rdx, [rsp + 0x90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x1402de1f0]
add rcx, 0x26f1
lea r8, [rsp + 0x90]
lea rdx, str._ssupd_
call fcn.140009a90
lea r8, [rsp + 0x90]
lea rdx, [0x140281500]
lea rcx, [rsp + 0x68]
call fcn.140009a90
lea r8, str.MicrosoftWindowsApps_
lea rdx, str.Temp_
lea rcx, [rsp + 0x68]
call fcn.14000c0b0
mov rcx, qword [0x1402de1f0]
add rcx, 0x26f9
mov r8, qword [rsp + 0x68]
lea rdx, [0x140281500]
call fcn.140009a90
mov rax, qword [0x1402de1f0]
mov byte [rax + 0x1031], 0
lea rdx, str.Asmedia_4242_Show_Firmware_Version_v2.1
lea rcx, [rsp + 0x70]
call fcn.140009a90
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.14002e84c
lea r8, [0x140280a88]
mov edx, 0x401
mov rcx, rsi
call fcn.14002e688
lea r8, [0x140280a88]
mov edx, 0x405
mov rcx, rsi
call fcn.14002e688
lea r8, [0x140280a88]
mov edx, 0x406
mov rcx, rsi
call fcn.14002e688
lea r8, [0x140280a88]
mov edx, 0x407
mov rcx, rsi
call fcn.14002e688
lea r8, [0x140280a88]
mov edx, 0x408
mov rcx, rsi
call fcn.14002e688
mov rcx, qword [0x1402de1f0]
call fcn.140018d00
cmp al, 1
je 0x14000bb91
lea rcx, str.Extract_DLL_fail._Please_close_the_tool_and_try_it_again.
jmp 0x14000bc16
lea rcx, vtable.CLoadDLL.0
call fcn.140009f40
cmp eax, 1
jne 0x14000bc0f
call fcn.14001ce50
xor edx, edx
call fcn.14001b4e0
test eax, eax
jne 0x14000bbc3
xor r8d, r8d
xor edx, edx
lea rcx, str.Disable_PowerSaving_fail.
call fcn.140034e9c
call qword [0x1402cc459]
mov rcx, qword [0x1402de1f0]
call fcn.1400183d0
cmp al, 1
je 0x14000bbef
xor r8d, r8d
xor edx, edx
lea rcx, str.Extract_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
call fcn.140034e9c
jmp 0x14000bde1
call qword [0x1402cc451]
movsx ecx, al
cmp ecx, 2
jne 0x14000bc0a
call fcn.14001dcb0
call qword [0x1402cc451]
jmp 0x14000bc25
cmp ecx, 1
je 0x14000bc25
lea rcx, str.Load_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
xor r8d, r8d
xor edx, edx
call fcn.140034e9c
jmp 0x14000bde1
call fcn.14001d7a0
call qword [0x1402cc569]
call fcn.14001cde0
call fcn.14000b6b0
mov rcx, qword [0x1402de1f0]
call fcn.140017890
mov rcx, qword [0x1402de1f0]
cmp byte [rcx + 0x106c], 0xff
jne 0x14000bc90
cmp byte [rcx + 0x1076], 0xff
jne 0x14000bc90
cmp byte [rcx + 0x1080], 0xff
jne 0x14000bc90
cmp byte [rcx + 0x108a], 0xff
jne 0x14000bc90
cmp byte [rcx + 0x1094], 0xff
jne 0x14000bc90
xor r8d, r8d
xor edx, edx
lea rcx, str.Read_hardware_IO_fail._Please_close_the_tool_and_try_it_again.
call fcn.140034e9c
jmp 0x14000bde1
add rcx, 0x26e9
call fcn.14000c000
mov rcx, qword [0x1402de1f0]
add rcx, 0x26e9
mov rdx, rax
call fcn.140009690
mov r8, qword [0x1402de1f0]
movzx eax, byte [r8 + 0x1031]
test al, al
je 0x14000bdbe
xor ebp, ebp
test al, al
je 0x14000bdbe
mov r14d, ebp
movzx eax, byte [r14 + r8 + 0x1071]
movzx ecx, byte [r14 + r8 + 0x1070]
movzx edx, byte [r14 + r8 + 0x106f]
movzx r10d, byte [r14 + r8 + 0x106e]
movzx r11d, byte [r14 + r8 + 0x106d]
movzx ebx, byte [r14 + r8 + 0x106c]
movzx edi, byte [r14 + r8 + 0x1034]
movzx r9d, byte [r14 + r8 + 0x1033]
movzx r8d, byte [r14 + r8 + 0x1032]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
lea rdx, str.Bus:__02d__Device:__02d__Func:__02d____FW_:__02X_02X_02X__02X_02X__02X
lea rcx, [rsp + 0x60]
call fcn.140009a90
mov eax, ebp
test ebp, ebp
je 0x14000bd8c
sub eax, 1
je 0x14000bd85
sub eax, 1
je 0x14000bd7e
sub eax, 1
je 0x14000bd77
cmp eax, 1
jne 0x14000bd9e
mov edx, 0x408
jmp 0x14000bd91
mov edx, 0x407
jmp 0x14000bd91
mov edx, 0x406
jmp 0x14000bd91
mov edx, 0x405
jmp 0x14000bd91
mov edx, 0x401
mov r8, qword [rsp + 0x60]
mov rcx, rsi
call fcn.14002e688
inc ebp
add r14, 0x40e
mov r8, qword [0x1402de1f0]
movzx eax, byte [r8 + 0x1031]
cmp ebp, eax
jl 0x14000bcd6
mov dl, 1
call fcn.14001b4e0
test eax, eax
jne 0x14000bdda
xor r8d, r8d
xor edx, edx
lea rcx, str.ENABLE_PowerSaving_fail.
call fcn.140034e9c
call qword [0x1402cc459]
nop
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x14000bdfe
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000be1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000be3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000be58
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401d87c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret