Function at 0x14000c270
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 [0x1402aa768]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, rcx
call fcn.14002e420
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.140028df4
mov rcx, rax
test rax, rax
jne 0x14000c2ff
mov ecx, 0x80004005
call fcn.140009a10
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.140028df4
mov rcx, rax
test rax, rax
jne 0x14000c326
mov ecx, 0x80004005
call fcn.140009a10
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov byte [r14 + 0x170], 0
call fcn.140028df4
mov rcx, rax
test rax, rax
jne 0x14000c355
mov ecx, 0x80004005
call fcn.140009a10
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.140028df4
mov rcx, rax
test rax, rax
jne 0x14000c37c
mov ecx, 0x80004005
call fcn.140009a10
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 [0x1402bc480]
add rcx, 0x26f1
lea r8, [rsp + 0xa0]
lea rdx, str._ssupd_
call fcn.140009880
lea r8, [rsp + 0xa0]
lea rdx, [0x140264d30]
lea rcx, [rsp + 0x70]
call fcn.140009880
lea r8, str.MicrosoftWindowsApps_
lea rdx, str.Temp_
lea rcx, [rsp + 0x70]
call fcn.14000be10
mov rcx, qword [0x1402bc480]
add rcx, 0x26f9
mov r8, qword [rsp + 0x70]
lea rdx, [0x140264d30]
call fcn.140009880
mov rax, qword [0x1402bc480]
mov byte [rax + 0x1031], 0
lea rdx, str.Asmedia_4242_Show_Firmware_Version_v4.14
lea rcx, [rsp + 0x78]
call fcn.140009880
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.1400264cc
mov rcx, qword [0x1402bc480]
call fcn.1400187f0
or r13, 0xffffffffffffffff
cmp al, 1
je 0x14000c467
lea rcx, str.Extract_DLL_fail._Please_close_the_tool_and_try_it_again.
jmp 0x14000c4c6
lea rcx, str.XL_
call fcn.140009d30
cmp eax, 1
jne 0x14000c4bf
call qword [0x1402ab3b9]
mov rcx, qword [0x1402bc480]
call fcn.140018030
cmp al, 1
je 0x14000c4a4
xor r8d, r8d
xor edx, edx
lea rcx, str.Extract_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
call fcn.14002cac8
jmp 0x14000c8c4
call qword [0x1402ab3b1]
movsx ecx, al
cmp ecx, 2
jne 0x14000c4ba
call qword [0x1402ab3b1]
jmp 0x14000c4d5
cmp ecx, 1
je 0x14000c4d5
lea rcx, str.Load_IO_Driver_fail._Please_close_the_tool_and_try_it_again.
xor r8d, r8d
xor edx, edx
call fcn.14002cac8
jmp 0x14000c8c4
call qword [0x1402ab4c9]
call fcn.14000b4a0
mov rcx, qword [0x1402bc480]
call fcn.140017550
mov rcx, qword [0x1402bc480]
cmp byte [rcx + 0x106c], 0xff
jne 0x14000c536
cmp byte [rcx + 0x1076], 0xff
jne 0x14000c536
cmp byte [rcx + 0x1080], 0xff
jne 0x14000c536
cmp byte [rcx + 0x108a], 0xff
jne 0x14000c536
cmp byte [rcx + 0x1094], 0xff
jne 0x14000c536
xor r8d, r8d
xor edx, edx
lea rcx, str.Read_hardware_IO_fail._Please_close_the_tool_and_try_it_again.
call fcn.14002cac8
jmp 0x14000c8c4
add rcx, 0x26e9
call fcn.14000bd60
mov rdx, rax
mov rcx, qword [0x1402bc480]
add rcx, 0x26e9
call fcn.140009480
call fcn.140028df4
mov rcx, rax
test rax, rax
jne 0x14000c570
mov ecx, 0x80004005
call fcn.140009a10
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
mov rdi, qword [0x1402bc480]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c5e8
lea rdx, [0x14026532c]
call fcn.1401dc5dc
test rax, rax
je 0x14000c5e8
sub eax, dword [rdi + 0x26e9]
js 0x14000c5e8
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402bc480]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000c5d0
call fcn.14000c980
jmp 0x14000c5e0
call fcn.14000bc30
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000d040
mov rdi, qword [0x1402bc480]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c64e
lea rdx, [0x140265330]
call fcn.1401dc5dc
test rax, rax
je 0x14000c64e
sub eax, dword [rdi + 0x26e9]
js 0x14000c64e
mov byte [r14 + 0x170], 1
mov rax, qword [0x1402bc480]
movzx edx, byte [rax + 0x1031]
test dl, dl
je 0x14000c636
call fcn.14000cbd0
jmp 0x14000c646
call fcn.14000bc30
mov ecx, 2
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rcx, r14
call fcn.14000d040
mov rdi, qword [0x1402bc480]
mov rcx, qword [rdi + 0x26e9]
cmp dword [rcx - 0x10], 0
jl 0x14000c6bd
lea rdx, [0x140265334]
call fcn.1401dc5dc
test rax, rax
je 0x14000c6bd
sub eax, dword [rdi + 0x26e9]
js 0x14000c6bd
lea rdx, str.Use_command_ASM4242ShowFW__V_to_output_FW_version.
mov rax, r13
inc rax
cmp byte [rdx + rax], 0
jne 0x14000c685
mov r8d, eax
lea rcx, [rsp + 0x80]
call fcn.140009300
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call fcn.14002cac8
mov rcx, r14
call fcn.14000d040
jmp 0x14000c6c5
mov byte [r14 + 0x170], 0
mov rax, qword [0x1402bc480]
movzx ecx, byte [rax + 0x1031]
test cl, cl
je 0x14000c8a2
xor r15d, r15d
test cl, cl
je 0x14000c8a2
mov r12d, r15d
nop dword [rax]
mov rax, qword [0x1402bc480]
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.140009880
mov ecx, r15d
test r15d, r15d
je 0x14000c7bf
sub ecx, 1
je 0x14000c7b0
sub ecx, 1
je 0x14000c7a1
cmp ecx, 1
jne 0x14000c879
mov r8, qword [rsp + 0x60]
mov edx, 0x404
jmp 0x14000c871
mov r8, qword [rsp + 0x60]
mov edx, 0x403
jmp 0x14000c871
mov r8, qword [rsp + 0x60]
mov edx, 0x402
jmp 0x14000c871
mov r8, qword [rsp + 0x60]
mov edx, 0x401
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x1330]
mov edx, 0x405
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x1368]
mov edx, 0x406
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x13b0]
mov edx, 0x407
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x13f8]
mov edx, 0x408
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x12bf]
mov edx, 0x409
mov rcx, r14
call fcn.140026308
mov rax, qword [0x1402bc480]
mov r8, qword [r12 + rax + 0x12f4]
mov edx, 0x40a
mov rcx, r14
call fcn.140026308
inc r15d
add r12, 0x40e
mov rax, qword [0x1402bc480]
movzx ecx, byte [rax + 0x1031]
cmp r15d, ecx
jl 0x14000c6f0
mov rsi, qword [rsp + 0x88]
call qword [0x1402ab3b9]
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c8c4
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 0x14000c8de
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 0x14000c8fe
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 0x14000c91e
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 0x14000c93d
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.1401d0680
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