Function at 0x14010eba0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r12, r8
mov qword [rsp + 0x50], r8
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x78], r8
mov rsi, qword [rdx + 8]
test rsi, rsi
jne 0x14010ec3f
lea ecx, [rsi + 2]
call fcn.1400d13d0
mov rcx, rax
lea rdx, str.no_firmware_data_n
call fcn.140003610
mov rcx, qword [r15]
add rcx, 0x10
lea r8d, [rsi + 0xe]
lea rdx, str.NoFirmwareData
call fcn.140009180
nop
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14010f173
mov rax, qword [rcx]
cmp rcx, r12
setne dl
call qword [rax + 0x20]
xor r13d, r13d
jmp 0x14010f16e
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], SafeArrayGetDim
mov rbx, qword [rcx]
add rbx, 0x10
mov r14, qword [rdx]
xor r13d, r13d
mov dword [rsp + 0x48], r13d
mov qword [rbp - 0x70], r13
mov byte [rbp - 0x80], r13b
mov qword [rbx + 0x10], r13
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14010ec79
mov rax, qword [rbx]
mov byte [rax], r13b
lea rdx, [rbp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x14010f0ce
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, str.com_heavys_fw9000
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x14010ecca
lea r8d, [rax + 0x1d]
lea rdx, str.failed_to_name_temporary_file
jmp 0x14010f0db
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14010ed0d
lea r8d, [rax + 0x20]
lea rdx, str.failed_to_create_temporary_file
jmp 0x14010f0db
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010ed4b
lea r8d, [rax + 0x1e]
lea rdx, str.failed_to_write_temporary_file
mov rcx, rbx
call fcn.140009180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14010f0e3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x60]
mov r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp byte [rax + r8], r13b
jne 0x14010ed62
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140009180
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
call fcn.14010e900
test eax, eax
jne 0x14010ef20
xor r12b, r12b
mov esi, r13d
mov rbx, qword [0x1405a7858]
mov rcx, qword [0x1405a7860]
cmp rbx, rcx
je 0x14010ee28
mov rcx, qword [rbx]
call fcn.14010e1f0
test eax, eax
je 0x14010edc6
cmp eax, 0xfffffff2
je 0x14010edc6
add esi, 0x64
jmp 0x14010ee11
mov rdi, qword [rbx]
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 8]
cmp byte [rax + 0x30], r12b
je 0x14010edfb
mov rcx, qword [rax]
test rcx, rcx
je 0x14010edfb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14010edfb
movzx r14d, byte [rdi + 0x10]
jmp 0x14010edfe
mov r14b, 0x64
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, r14b
add esi, eax
add rbx, 8
mov rcx, qword [0x1405a7860]
cmp rbx, rcx
jne 0x14010edb0
mov rbx, qword [0x1405a7858]
sub rcx, rbx
sar rcx, 3
test rcx, rcx
je 0x14010ee3e
mov eax, esi
xor edx, edx
div rcx
mov r12, rax
movzx ecx, r12b
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movsd qword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x14010f1a5
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
lea rdx, [rsp + 0x48]
call r8
cmp r12b, 0x64
jae 0x14010ee87
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14010ed93
xor dil, dil
mov rbx, qword [0x1405a7858]
cmp rbx, qword [0x1405a7860]
je 0x14010eefb
nop word [rax + rax]
mov rcx, qword [rbx]
call fcn.14010e1f0
test eax, eax
je 0x14010eeb4
cmp eax, 0xfffffff2
je 0x14010eeb4
inc dil
add rbx, 8
cmp rbx, qword [0x1405a7860]
jne 0x14010eea0
test dil, dil
je 0x14010eefb
xor sil, sil
call fcn.14010e6c0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
add rcx, 0x10
nop word [rax + rax]
inc r15
cmp byte [rax + r15], sil
jne 0x14010eee0
mov r8, r15
mov rdx, rax
call fcn.140009180
mov r12, qword [rsp + 0x50]
jmp 0x14010ef48
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
add rcx, 0x10
xor r8d, r8d
lea rdx, [0x14029b58f]
call fcn.140009180
mov sil, 1
mov r12, qword [rsp + 0x50]
jmp 0x14010ef48
call fcn.14010e6c0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
add rcx, 0x10
inc r15
cmp byte [rax + r15], r13b
jne 0x14010ef31
mov r8, r15
mov rdx, rax
call fcn.140009180
xor sil, sil
mov rbx, qword [0x1405a7858]
cmp rbx, qword [0x1405a7860]
je 0x14010f05e
nop dword [rax]
mov rdi, qword [rbx]
mov rax, qword [rdi + 8]
cmp byte [rax + 0x30], r13b
je 0x14010f03f
mov rcx, qword [rax]
test rcx, rcx
je 0x14010f03f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14010f03f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14010f04d
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14010efd3
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 8]
mov qword [rax], r13
mov rax, qword [rdi + 8]
mov byte [rax + 0x30], r13b
jmp 0x14010f04d
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov ecx, 0x20
call fcn.1400c9d40
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0x1c
mov qword [rsp + 0x70], 0x1f
movups xmm0, xmmword [str.Failed_to_stop_the_operation]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14029bfd8]
movsd qword [rax + 0x10], xmm0
mov edx, dword [0x14029bfe0]
mov dword [rax + 0x18], edx
mov byte [rax + 0x1c], r13b
lea r8, [rsp + 0x58]
mov edx, 0xffffffec
lea rcx, [rdi + 0x50]
call fcn.140103fd0
jmp 0x14010f04d
lea rcx, [rdi + 0x50]
mov edx, 0xffffffea
call fcn.140104070
add rbx, 8
cmp rbx, qword [0x1405a7860]
jne 0x14010ef60
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14010f099
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010f094
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010f19f
call fcn.1400c9d7c
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], SafeArrayGetDim
mov byte [rbp - 0x80], 0
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14010f0c5
mov r8, qword [rcx]
cmp rcx, r12
setne dl
call qword [r8 + 0x20]
mov qword [r12 + 0x38], r13
movzx eax, sil
jmp 0x14010f175
mov r8d, 0x29
lea rdx, str.failed_to_locate_temporary_file_directory
mov rcx, rbx
call fcn.140009180
mov rbx, qword [r15]
add rbx, 0x10
cmp qword [rbx + 0x18], 0xf
jbe 0x14010f0f4
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1400d13d0
mov r8, rbx
lea rdx, str.failed_to_create_firmware_file:__s_n
mov rcx, rax
call fcn.140003610
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14010f148
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010f143
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010f19f
call fcn.1400c9d7c
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], SafeArrayGetDim
mov byte [rbp - 0x80], 0
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14010f173
mov rax, qword [rcx]
cmp rcx, r12
setne dl
call qword [rax + 0x20]
mov qword [r12 + 0x38], r13
xor al, al
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400c9d20
mov rbx, qword [rsp + 0x328]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d4b64
nop
call fcn.1400c7490
int3