Function at 0x14000aa10
Capabilities:
Accept command line arguments
Enumerate process modules

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48e0]
mov eax, 0x49e0
call fcn.1401adf10
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x4a18], rbx
mov qword [rsp + 0x4a20], rsi
mov qword [rsp + 0x4a28], rdi
mov rax, qword [0x1402878c8]
xor rax, rsp
mov qword [rbp + 0x48d0], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x60]
call fcn.140006c70
nop
xor r12b, r12b
mov byte [rsp + 0x41], r12b
mov byte [rsp + 0x40], r12b
lea r8, [0x1401e0d78]
mov edx, 0x104
lea rcx, [rbp + 0x44b0]
call fcn.1401b25d8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov qword [rsp + 0x78], rax
lea rdx, str.Thrustmaster___Firmware_Updater
mov ecx, 0x8002
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
test rax, rax
je 0x14000ab33
mov dword [rsp + 0x30], 3
xor r13d, r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [r13 - 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [r13 + 0x1e]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [r13 - 2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14000afff
mov r9d, 0x104
lea r8, [rbp + 0x42a0]
mov rdx, qword [r15]
mov rcx, rdi
call fcn.14000a920
xor r13d, r13d
mov ebx, r13d
mov dword [rsp + 0x44], ebx
lea r8, [rsp + 0x48]
mov edx, 0x1000
lea rcx, [rbp + 0x2a60]
call sub.KERNEL32.dll_K32EnumProcesses
lea r14, [r13 - 1]
test eax, eax
je 0x14000acfb
mov r12d, dword [rsp + 0x48]
shr r12, 2
sub r12, 1
js 0x14000acf8
nop word [rax + rax]
mov r8d, dword [rbp + r12*4 + 0x2a60]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x14000acdb
lea r9, [rsp + 0x48]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x14000acd2
mov r9d, 0x104
lea r8, [rbp + 0x3c70]
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call sub.KERNEL32.dll_K32GetModuleFileNameExW
lea rax, [rbp + 0x3c70]
mov rbx, r14
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x14000abf5
dec ebx
movsxd rax, ebx
test ebx, ebx
jle 0x14000ac24
lea rcx, [rbp + rax*2 + 0x3c6e]
cmp word [rcx], 0x5c
je 0x14000ac24
dec ebx
dec rax
sub rcx, 2
test rax, rax
jg 0x14000ac10
mov rdi, r13
movsxd rax, ebx
lea rsi, [rbp + 0x3c70]
lea rsi, [rsi + rax*2]
nop word [rax + rax]
lea rcx, [rbp + 0x3c70]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14000ac50
cmp ebx, eax
jge 0x14000ac80
movzx ecx, word [rsi]
call fcn.1401b9b84
mov word [rbp + rdi*2 + 0x4090], ax
inc rdi
inc ebx
add rsi, 2
cmp rdi, 0x104
jl 0x14000ac40
mov eax, 0x103
cmp rdi, 0x104
cmovne rax, rdi
mov word [rbp + rax*2 + 0x4090], r13w
lea rax, [rbp + 0x42a0]
lea r8, [rbp + 0x4090]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000acc4
add rax, 2
test ecx, ecx
jne 0x14000acb0
mov ebx, dword [rsp + 0x44]
test edx, edx
jne 0x14000acd2
inc ebx
mov dword [rsp + 0x44], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
sub r12, 1
jns 0x14000ab90
cmp ebx, 1
jg 0x14000afff
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x78]
xor r12b, r12b
mov dword [rsp + 0x4c], 0x104
lea r8, [0x1401e0d78]
mov edx, 0x104
lea rcx, [rbp + 0x3a60]
call fcn.1401b25d8
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x3a60]
lea rdx, str.path
lea rcx, str.SoftwareThrustmasterTMFirmwareUpdater
call fcn.1400094b0
lea rcx, [rbp + 0x3a60]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14000ad44
movsxd rcx, eax
test eax, eax
jle 0x14000ad74
lea rdx, [rbp + rcx*2 + 0x3a5e]
nop dword [rax]
cmp word [rdx], 0x5c
je 0x14000ad74
dec eax
dec rcx
sub rdx, 2
test rcx, rcx
jg 0x14000ad60
cdqe
add rax, rax
cmp rax, 0x208
jae 0x14000b0d7
mov word [rbp + rax + 0x3a60], r13w
lea r8, [rbp + 0x3a60]
mov edx, 0x104
lea rcx, [rbp + 0x3e80]
call fcn.1401b25d8
lea rax, [rbp + 0x3e80]
nop dword [rax]
inc r14
cmp word [rax + r14*2], r13w
jne 0x14000adb0
test r14, r14
je 0x14000adef
lea r8, str.firmware
mov edx, 0x104
lea rcx, [rbp + 0x3a60]
call fcn.1401b6edc
lea r8, str.msgFiles
mov edx, 0x104
lea rcx, [rbp + 0x3e80]
call fcn.1401b6edc
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
mov rcx, rdi
call fcn.140032e90
movsxd rax, dword [rsp + 0x50]
cmp eax, 1
jle 0x14000afce
mov edi, 1
mov rsi, rax
cmp rax, rdi
jle 0x14000afc9
mov ebx, edi
nop
lea rdx, [0x1401e2830]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afbb
lea rdx, [0x1401e2840]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afbb
lea rdx, str._trace
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afbb
lea rdx, [0x1401e2860]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb8
lea rdx, [0x1401e2870]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb8
lea rdx, str._manual
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb8
lea rdx, [0x1401e2890]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb1
lea rdx, [0x1401e28a0]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb1
lea rdx, str._selfal
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afb1
lea rdx, [0x1401e28c0]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afaa
lea rdx, [0x1401e28d8]
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afaa
lea rdx, str._install
mov rcx, qword [r15 + rbx*8]
call fcn.1401b6d68
test eax, eax
je 0x14000afaa
mov r8d, 4
lea rdx, str.djc:
mov rcx, qword [r15 + rbx*8]
call fcn.1401b9b8c
test eax, eax
jne 0x14000af71
mov r8, qword [r15 + rbx*8]
add r8, 8
mov edx, 0x104
lea rcx, [rbp + 0x44b0]
call fcn.1401b25d8
jmp 0x14000afbb
mov r8d, 5
lea rdx, str.path:
mov rcx, qword [r15 + rbx*8]
call fcn.1401b9b8c
test eax, eax
jne 0x14000b03b
mov r8, qword [r15 + rbx*8]
add r8, 8
mov edx, 0x104
lea rcx, [rbp + 0x3a60]
call fcn.1401b25d8
jmp 0x14000afbb
mov byte [rsp + 0x40], 1
jmp 0x14000afbb
mov byte [rsp + 0x41], 1
jmp 0x14000afbb
mov r12b, 1
inc edi
inc rbx
cmp rbx, rsi
jl 0x14000ae20
mov rdi, qword [rsp + 0x58]
lea rcx, [rbp + 0x3e80]
call fcn.140017fd0
test eax, eax
je 0x14000b06c
mov r9d, InitCommonControls
lea r8, str.Thrustmaster___Firmware_Updater
lea rdx, str.Updater:_Error_loading_MSG_files.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x60]
call fcn.140006c80
xor eax, eax
mov rcx, qword [rbp + 0x48d0]
xor rcx, rsp
call fcn.1401adf80
lea r11, [rsp + 0x49e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movsxd r8, edi
mov r8, qword [r15 + r8*8]
lea rdx, str.Error:_invalid_argument__s
lea rcx, [rbp + 0x46c0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, InitCommonControls
lea r8, str.Thrustmaster___Firmware_Updater
lea rdx, [rbp + 0x46c0]
jmp 0x14000aff6
lea rdx, str.Thrustmaster___Firmware_Updater
mov rcx, rdi
call fcn.1400346d4
lea rdx, [rbp + 0x3a60]
lea rcx, [rsp + 0x60]
call fcn.140008b60
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.14000b140
nop
lea rax, [rbp - 0x70]
mov qword [rdi + 0x40], rax
movzx r9d, byte [rsp + 0x40]
movzx r8d, byte [rsp + 0x41]
movzx edx, r12b
lea rcx, [rbp - 0x70]
call fcn.140011f20
lea rcx, [rbp - 0x70]
call fcn.1400310d4
nop
lea rcx, [rbp - 0x70]
call fcn.14000b470
jmp 0x14000afff
call fcn.1401ae12c
int3