Function at 0x14000b140
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rax - 0x158], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402c9768]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, rcx
call fcn.140035a7c
mov r9, qword [r14 + 0x171]
mov edx, 0x80
lea r8d, [rdx - 0x7f]
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageA]
mov r9, qword [r14 + 0x171]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageA]
call fcn.14002fe48
mov rcx, rax
test rax, rax
jne 0x14000b1cf
mov ecx, 0x80004005
call fcn.1400093e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.14002fe48
mov rcx, rax
test rax, rax
jne 0x14000b1f6
mov ecx, 0x80004005
call fcn.1400093e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov byte [r14 + 0x170], 0
call fcn.14002fe48
mov rcx, rax
test rax, rax
jne 0x14000b225
mov ecx, 0x80004005
call fcn.1400093e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.14002fe48
mov rcx, rax
test rax, rax
jne 0x14000b24c
mov ecx, 0x80004005
call fcn.1400093e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
mov rsi, rax
mov qword [rsp + 0x88], rax
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x1402dc120]
add rcx, 0x26f1
lea r8, [rsp + 0xa0]
lea rdx, str._ssupd_
call fcn.140009250
lea r8, [rsp + 0xa0]
lea rdx, [0x1402804f0]
lea rcx, [rsp + 0x70]
call fcn.140009250
lea r8, str.MicrosoftWindowsApps_
lea rdx, str.Temp_
lea rcx, [rsp + 0x70]
call fcn.14000c190
mov rcx, qword [0x1402dc120]
add rcx, 0x26f9
mov r8, qword [rsp + 0x70]
lea rdx, [0x1402804f0]
call fcn.140009250
mov rax, qword [0x1402dc120]
mov byte [rax + 0x1031], 0
lea rdx, str.Asmedia_4242_Show_Firmware_Version_v4.13
lea rcx, [rsp + 0x78]
call fcn.140009250
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14002d520
mov rcx, qword [0x1402dc120]
call fcn.140017dd0
or r13, 0xffffffffffffffff
cmp al, 1
je 0x14000b33a
lea rcx, str.Extract_DLL_fail._Please_close_the_tool_and_try_it_again.
jmp 0x14000b3bf
lea rcx, vtable.CLoadDLL.0
call fcn.140009700
cmp eax, 1
jne 0x14000b3b8
call fcn.14001bf20
xor edx, edx
call fcn.14001a5b0
test eax, eax
jne 0x14000b36c
xor r8d, r8d
xor edx, edx
lea rcx, str.Disable_PowerSaving_fail.
call fcn.140033ae0
call qword [0x1402ca459]
mov rcx, qword [0x1402dc120]
call fcn.140017460
cmp al, 1
je 0x14000b398
xor r8d, r8d
xor edx, edx
lea rcx, str.Extract_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
call fcn.140033ae0
jmp 0x14000b7f0
call qword [0x1402ca451]
movsx ecx, al
cmp ecx, 2
jne 0x14000b3b3
call fcn.14001c9a0
call qword [0x1402ca451]
jmp 0x14000b3ce
cmp ecx, 1
je 0x14000b3ce
lea rcx, str.Load_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
xor r8d, r8d
xor edx, edx
call fcn.140033ae0
jmp 0x14000b7f0
call fcn.14001c490
call qword [0x1402ca569]
call fcn.14001beb0
call fcn.14000ae70
mov rcx, qword [0x1402dc120]
call fcn.140016920
mov rcx, qword [0x1402dc120]
cmp byte [rcx + 0x106c], 0xff
jne 0x14000b439
cmp byte [rcx + 0x1076], 0xff
jne 0x14000b439
cmp byte [rcx + 0x1080], 0xff
jne 0x14000b439
cmp byte [rcx + 0x108a], 0xff
jne 0x14000b439
cmp byte [rcx + 0x1094], 0xff
jne 0x14000b439
xor r8d, r8d
xor edx, edx
lea rcx, str.Read_hardware_IO_fail._Please_close_the_tool_and_try_it_again.
call fcn.140033ae0
jmp 0x14000b7f0
add rcx, 0x26e9
call fcn.14000c0e0
mov rdx, rax
mov rcx, qword [0x1402dc120]
add rcx, 0x26e9
call fcn.140008e50
call fcn.14002fe48
mov rcx, rax
test rax, rax
jne 0x14000b473
mov ecx, 0x80004005
call fcn.1400093e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
mov rdi, qword [0x1402dc120]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000b4eb
lea rdx, [0x140280630]
call fcn.1401e6c1c
test rax, rax
je 0x14000b4eb
sub eax, dword [rdi + 0x26e9]
js 0x14000b4eb
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402dc120]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000b4d3
call fcn.14000b8a0
jmp 0x14000b4e3
call fcn.14000c030
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000bf60
mov rdi, qword [0x1402dc120]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000b551
lea rdx, [0x140280634]
call fcn.1401e6c1c
test rax, rax
je 0x14000b551
sub eax, dword [rdi + 0x26e9]
js 0x14000b551
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402dc120]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000b539
call fcn.14000baf0
jmp 0x14000b549
call fcn.14000c030
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000bf60
mov rdi, qword [0x1402dc120]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000b5c8
lea rdx, [0x140280638]
call fcn.1401e6c1c
test rax, rax
je 0x14000b5c8
sub eax, dword [rdi + 0x26e9]
js 0x14000b5c8
lea rdx, str.Use_command_ASM4242ShowFW__V_to_output_FW_version.
mov rax, r13
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14000b590
mov r8d, eax
lea rcx, [rsp + 0x80]
call fcn.140008cd0
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call fcn.140033ae0
mov rcx, r14
call fcn.14000bf60
jmp 0x14000b5d0
mov byte [r14 + 0x170], 0
mov rax, qword [0x1402dc120]
movzx ecx, byte [rax + 0x1031]
test cl, cl
je 0x14000b7b2
xor r15d, r15d
test cl, cl
je 0x14000b7b2
mov r12d, r15d
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [0x1402dc120]
movzx ecx, byte [r12 + rax + 0x1071]
movzx edx, byte [r12 + rax + 0x1070]
movzx r10d, byte [r12 + rax + 0x106f]
movzx r11d, byte [r12 + rax + 0x106e]
movzx edi, byte [r12 + rax + 0x106d]
movzx esi, byte [r12 + rax + 0x106c]
movzx ebp, byte [r12 + rax + 0x1034]
movzx r9d, byte [r12 + rax + 0x1033]
movzx r8d, byte [r12 + rax + 0x1032]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
lea rdx, str.Bus:__02d__Device:__02d__Func:__02d____FW_:__02X_02X_02X__02X_02X__02X
lea rcx, [rsp + 0x60]
call fcn.140009250
mov ecx, r15d
test r15d, r15d
je 0x14000b6cf
sub ecx, 1
je 0x14000b6c0
sub ecx, 1
je 0x14000b6b1
cmp ecx, 1
jne 0x14000b789
mov r8, qword [rsp + 0x60]
mov edx, 0x404
jmp 0x14000b781
mov r8, qword [rsp + 0x60]
mov edx, 0x403
jmp 0x14000b781
mov r8, qword [rsp + 0x60]
mov edx, 0x402
jmp 0x14000b781
mov r8, qword [rsp + 0x60]
mov edx, 0x401
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x1330]
mov edx, 0x405
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x1368]
mov edx, 0x406
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x13b0]
mov edx, 0x407
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x13f8]
mov edx, 0x408
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x12bf]
mov edx, 0x409
mov rcx, r14
call fcn.14002d35c
mov rax, qword [0x1402dc120]
mov r8, qword [r12 + rax + 0x12f4]
mov edx, 0x40a
mov rcx, r14
call fcn.14002d35c
inc r15d
add r12, 0x40e
mov rax, qword [0x1402dc120]
movzx ecx, byte [rax + 0x1031]
cmp r15d, ecx
jl 0x14000b600
mov rsi, qword [rsp + 0x88]
mov dl, 1
call fcn.14001a5b0
test eax, eax
jne 0x14000b7ce
xor r8d, r8d
xor edx, edx
lea rcx, str.ENABLE_PowerSaving_fail.
call fcn.140033ae0
call qword [0x1402ca459]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b7f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x14000b80a
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b82a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b84a
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], r13d
sub r13d, 1
jg 0x14000b869
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401d7480
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret