Function at 0x14000c510
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 [0x1402cb768]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, rcx
call fcn.140036888
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.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000c59f
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 0x14000c5c6
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov byte [r14 + 0x170], 0
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000c5f5
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 0x14000c61c
mov ecx, 0x80004005
call fcn.140009c20
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 [0x1402de1f0]
add rcx, 0x26f1
lea r8, [rsp + 0xa0]
lea rdx, str._ssupd_
call fcn.140009a90
lea r8, [rsp + 0xa0]
lea rdx, [0x140281500]
lea rcx, [rsp + 0x70]
call fcn.140009a90
lea r8, str.MicrosoftWindowsApps_
lea rdx, str.Temp_
lea rcx, [rsp + 0x70]
call fcn.14000c0b0
mov rcx, qword [0x1402de1f0]
add rcx, 0x26f9
mov r8, qword [rsp + 0x70]
lea rdx, [0x140281500]
call fcn.140009a90
mov rax, qword [0x1402de1f0]
mov byte [rax + 0x1031], 0
lea rdx, str.Asmedia_4242_Show_Firmware_Version_v4.14
lea rcx, [rsp + 0x78]
call fcn.140009a90
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14002e84c
mov rcx, qword [0x1402de1f0]
call fcn.140018d00
or r13, 0xffffffffffffffff
cmp al, 1
je 0x14000c70a
lea rcx, str.Extract_DLL_fail._Please_close_the_tool_and_try_it_again.
jmp 0x14000c78f
lea rcx, vtable.CLoadDLL.0
call fcn.140009f40
cmp eax, 1
jne 0x14000c788
call fcn.14001ce50
xor edx, edx
call fcn.14001b4e0
test eax, eax
jne 0x14000c73c
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 0x14000c768
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 0x14000cbc0
call qword [0x1402cc451]
movsx ecx, al
cmp ecx, 2
jne 0x14000c783
call fcn.14001dcb0
call qword [0x1402cc451]
jmp 0x14000c79e
cmp ecx, 1
je 0x14000c79e
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 0x14000cbc0
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 0x14000c809
cmp byte [rcx + 0x1076], 0xff
jne 0x14000c809
cmp byte [rcx + 0x1080], 0xff
jne 0x14000c809
cmp byte [rcx + 0x108a], 0xff
jne 0x14000c809
cmp byte [rcx + 0x1094], 0xff
jne 0x14000c809
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 0x14000cbc0
add rcx, 0x26e9
call fcn.14000c000
mov rdx, rax
mov rcx, qword [0x1402de1f0]
add rcx, 0x26e9
call fcn.140009690
call fcn.1400311c4
mov rcx, rax
test rax, rax
jne 0x14000c843
mov ecx, 0x80004005
call fcn.140009c20
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
mov rdi, qword [0x1402de1f0]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c8bb
lea rdx, [0x140281b3c]
call fcn.1401e7f5c
test rax, rax
je 0x14000c8bb
sub eax, dword [rdi + 0x26e9]
js 0x14000c8bb
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402de1f0]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000c8a3
call fcn.14000cc70
jmp 0x14000c8b3
call fcn.14000be90
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000d330
mov rdi, qword [0x1402de1f0]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c921
lea rdx, [0x140281b40]
call fcn.1401e7f5c
test rax, rax
je 0x14000c921
sub eax, dword [rdi + 0x26e9]
js 0x14000c921
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402de1f0]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000c909
call fcn.14000cec0
jmp 0x14000c919
call fcn.14000be90
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000d330
mov rdi, qword [0x1402de1f0]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c998
lea rdx, [0x140281b44]
call fcn.1401e7f5c
test rax, rax
je 0x14000c998
sub eax, dword [rdi + 0x26e9]
js 0x14000c998
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 0x14000c960
mov r8d, eax
lea rcx, [rsp + 0x80]
call fcn.140009510
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call fcn.140034e9c
mov rcx, r14
call fcn.14000d330
jmp 0x14000c9a0
mov byte [r14 + 0x170], 0
mov rax, qword [0x1402de1f0]
movzx ecx, byte [rax + 0x1031]
test cl, cl
je 0x14000cb82
xor r15d, r15d
test cl, cl
je 0x14000cb82
mov r12d, r15d
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [0x1402de1f0]
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.140009a90
mov ecx, r15d
test r15d, r15d
je 0x14000ca9f
sub ecx, 1
je 0x14000ca90
sub ecx, 1
je 0x14000ca81
cmp ecx, 1
jne 0x14000cb59
mov r8, qword [rsp + 0x60]
mov edx, 0x404
jmp 0x14000cb51
mov r8, qword [rsp + 0x60]
mov edx, 0x403
jmp 0x14000cb51
mov r8, qword [rsp + 0x60]
mov edx, 0x402
jmp 0x14000cb51
mov r8, qword [rsp + 0x60]
mov edx, 0x401
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x1330]
mov edx, 0x405
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x1368]
mov edx, 0x406
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x13b0]
mov edx, 0x407
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x13f8]
mov edx, 0x408
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x12bf]
mov edx, 0x409
mov rcx, r14
call fcn.14002e688
mov rax, qword [0x1402de1f0]
mov r8, qword [r12 + rax + 0x12f4]
mov edx, 0x40a
mov rcx, r14
call fcn.14002e688
inc r15d
add r12, 0x40e
mov rax, qword [0x1402de1f0]
movzx ecx, byte [rax + 0x1031]
cmp r15d, ecx
jl 0x14000c9d0
mov rsi, qword [rsp + 0x88]
mov dl, 1
call fcn.14001b4e0
test eax, eax
jne 0x14000cb9e
xor r8d, r8d
xor edx, edx
lea rcx, str.ENABLE_PowerSaving_fail.
call fcn.140034e9c
call qword [0x1402cc459]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000cbc0
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 0x14000cbda
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 0x14000cbfa
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 0x14000cc1a
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 0x14000cc39
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.1401d87c0
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