Function at 0x140090e60
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov qword [rsp + 0x228], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
lea rax, str.CSynapticsReflashApp::SynapticsReflash
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400c9a48]
mov r8d, 0x8d4
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0xb0]
call fcn.14008f230
nop
mov dword [rsp + 0x58], 0xffffffff
lea rdx, [rsp + 0x58]
lea rcx, [0x1400f4d70]
call fcn.14008c530
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x2a8]
cmp dword [rsp + 0x58], eax
jge 0x140090faf
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, str.Power_Status:_0x_x_n
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x1400c9ae0]
mov edx, 0x8dd
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
mov eax, dword [rsp + 0x2a8]
mov dword [rsp + 0x28], eax
lea rax, str.Power_Threshold:_0x_x_n
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x1400c9ab0]
mov edx, 0x8de
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
mov eax, dword [rsp + 0x2a8]
and eax, 0x10
test eax, eax
jne 0x140090f8b
mov dword [rsp + 0x80], 0x71
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0x80]
jmp 0x14009188e
mov dword [rsp + 0xa0], 0x70
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0xa0]
jmp 0x14009188e
lea rax, [rsp + 0x260]
mov qword [rsp + 0x220], rax
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x2b8]
call fcn.14008ee00
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x218], rax
mov r9d, 3
mov r8d, 7
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x218]
call fcn.1400156e0
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x1a0], rax
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0x2b8]
call fcn.14008ee00
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x190], rax
mov r9d, 4
mov r8d, 2
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x190]
call fcn.1400156e0
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x220]
call fcn.140014ef0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x1f0], rax
mov rcx, qword [rsp + 0x2b8]
call fcn.14008d470
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0x1a0]
call fcn.140003850
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0x110]
call fcn.140003850
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [rsp + 0x9c], eax
mov rcx, qword [rsp + 0x2b8]
call fcn.14008d4f0
nop
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x8c]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rsp + 0x9c]
mov r9d, ecx
mov r8d, eax
mov rdx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x2a0]
call fcn.140095ca0
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x120]
call fcn.140003680
nop
lea rcx, [rsp + 0x1b0]
call fcn.140003680
nop
lea rcx, [rsp + 0xc8]
call fcn.140003680
nop
lea rcx, [rsp + 0x208]
call fcn.140003680
cmp dword [rsp + 0x50], 0
je 0x1400911b2
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0x94]
jmp 0x14009188e
mov rcx, qword [rsp + 0x2a0]
call fcn.140096380
cmp eax, 2
je 0x14009154f
lea rcx, [rsp + 0x78]
call fcn.140003650
nop
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d670
test eax, eax
je 0x1400911ee
mov dword [rsp + 0x60], 2
jmp 0x1400911f6
mov dword [rsp + 0x60], 0x14
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x2b8]
call fcn.14008d530
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x200], rax
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x2b8]
call fcn.14008ee00
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x49e
lea rcx, [rsp + 0x180]
call fcn.1400909a0
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x200]
call fcn.140003850
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x160]
call fcn.140003850
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.140003850
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x170]
mov r9, rcx
mov rcx, qword [rsp + 0x210]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003440
nop
lea rcx, [rsp + 0x180]
call fcn.140003680
nop
lea rcx, [rsp + 0xd0]
call fcn.140003680
nop
lea rcx, [rsp + 0xd8]
call fcn.140003680
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x49b
lea rcx, [rsp + 0x128]
call fcn.1400909a0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140003850
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x78]
call fcn.140003850
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x2d0]
call fcn.14001f1e0
mov r9d, 0x24
mov rcx, qword [rsp + 0x108]
mov r8, rcx
mov rcx, qword [rsp + 0x118]
mov rdx, rcx
mov rcx, rax
call fcn.14008f710
cmp eax, 7
jne 0x1400913b3
mov dword [rsp + 0x68], 1
jmp 0x1400913bb
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x54], al
lea rcx, [rsp + 0x128]
call fcn.140003680
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x140091409
mov dword [rsp + 0x84], 0x6a
lea rcx, [rsp + 0x78]
call fcn.140003680
nop
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0x84]
jmp 0x14009188e
lea rcx, [rsp + 0xa8]
call fcn.140003650
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x515
lea rcx, [rsp + 0x158]
call fcn.1400909a0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0xa8]
call fcn.140003760
nop
lea rcx, [rsp + 0x158]
call fcn.140003680
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x49b
lea rcx, [rsp + 0x1a8]
call fcn.1400909a0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x178]
call fcn.140003850
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0xa8]
call fcn.140003850
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x2d0]
call fcn.14001f1e0
mov r9d, 0x40
mov rcx, qword [rsp + 0x188]
mov r8, rcx
mov rcx, qword [rsp + 0x198]
mov rdx, rcx
mov rcx, rax
call fcn.14008f710
cmp eax, 1
jne 0x140091514
mov dword [rsp + 0x70], 1
jmp 0x14009151c
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x55], al
lea rcx, [rsp + 0x1a8]
call fcn.140003680
movzx eax, byte [rsp + 0x55]
lea rcx, [rsp + 0xa8]
call fcn.140003680
nop
lea rcx, [rsp + 0x78]
call fcn.140003680
mov eax, dword [rsp + 0x2c0]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 1
je 0x14009156c
cmp dword [rsp + 0x64], 2
je 0x140091581
jmp 0x1400915c5
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.Reflashing
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
jmp 0x1400915c5
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2a0]
call fcn.140095910
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400915c5
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x88], eax
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0x88]
jmp 0x14009188e
mov dword [rsp + 0x5c], 0
jmp 0x1400915d9
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 3
jge 0x1400917ce
mov rcx, qword [rsp + 0x2a0]
call fcn.1400970d0
lea rcx, [0x1400f4a30]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x2c8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x2a0]
mov ecx, dword [rcx + 0x308]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x2a0]
mov ecx, dword [rcx + 0x300]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x2a0]
mov ecx, dword [rcx + 0x304]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x2b8]
mov r8, qword [rsp + 0x2b0]
mov edx, eax
lea rcx, [0x1400f4d70]
call fcn.14008b380
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x62
je 0x14009167b
cmp dword [rsp + 0x50], 0x31
je 0x14009167b
cmp dword [rsp + 0x50], 0x64
jne 0x14009174c
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d650
cmp eax, 0xd
jne 0x140091745
mov edx, 3
mov rcx, qword [rsp + 0x2a0]
call fcn.1400922f0
lea rdx, [rsp + 0x1f8]
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d6f0
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x1c8], rax
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d690
mov r9, qword [rsp + 0x1c8]
mov r8d, eax
lea rdx, [rsp + 0x230]
lea rcx, [0x1400f4d70]
call fcn.14008c2a0
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x1e8], rax
mov rdx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x2b0]
call fcn.140003540
nop
lea rcx, [rsp + 0x230]
call fcn.140003510
nop
lea rcx, [rsp + 0x1f8]
call fcn.140003680
jmp 0x1400915cf
cmp dword [rsp + 0x50], 0x61
jne 0x14009175a
jmp 0x1400915cf
cmp dword [rsp + 0x50], 0x68
jne 0x14009178b
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x304], 1
jne 0x14009178b
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x304], 0
jmp 0x1400915cf
cmp dword [rsp + 0x50], 0x24
je 0x1400917a0
cmp dword [rsp + 0x50], 0x60
je 0x1400917a0
cmp dword [rsp + 0x50], 0x25
jne 0x1400917b9
mov edx, 0x20000
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d630
jmp 0x1400915cf
cmp dword [rsp + 0x50], 0x6b
jne 0x1400917c7
jmp 0x1400915cf
jmp 0x1400917ce
mov rcx, qword [rsp + 0x2b0]
call fcn.14008eec0
mov dword [rsp + 0x28], eax
lea rax, str.New_FW_Id:__d_n
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.SynapticsReflash.cpp
mov edx, 0x95f
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
mov eax, dword [rsp + 0x2c0]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 1
je 0x140091825
cmp dword [rsp + 0x6c], 2
je 0x14009182d
jmp 0x14009183a
call qword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x14009183a
mov rcx, qword [rsp + 0x2a0]
call fcn.140095c60
cmp dword [rsp + 0x50], 0
jne 0x14009186f
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d650
cmp eax, 0xd
jne 0x14009186f
mov rcx, qword [rsp + 0x2a0]
call fcn.1400979c0
mov edx, eax
mov rcx, qword [rsp + 0x2a0]
call fcn.1400922f0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x90], eax
lea rcx, [rsp + 0xb0]
call fcn.14008f210
mov eax, dword [rsp + 0x90]
add rsp, 0x298
ret