Function at 0x1400027a0
Capabilities:
Get file version info

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x7c8]
sub rsp, 0x8c8
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x1fe
call fcn.1400047f0
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x1fe
call fcn.1400047f0
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x1fe
call fcn.1400047f0
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x1fe
call fcn.1400047f0
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002840
lea rcx, str.Could_not_found_the_exe_path._n
call fcn.1400031b0
mov eax, 1
jmp 0x140003138
mov qword [rsp + 0x8e0], rbx
lea rcx, [rbp + 0x1a0]
mov edx, 0x5c
mov qword [rsp + 0x8e8], rsi
call fcn.14000420c
mov rdx, rax
mov esi, 0x7ffffffe
lea rax, [rbp + 0x1a0]
sub rdx, rax
sar rdx, 1
inc rdx
lea rcx, [rdx - 1]
cmp rcx, rsi
ja 0x140003195
xor ebx, ebx
lea r9, [rbp + 0x1a0]
mov r8d, esi
lea rax, [rbp + 0x3a0]
sub r8, rdx
lea rcx, [rbp + 0x3a0]
sub r9, rax
mov r10d, ebx
nop dword [rax]
lea rax, [rdx + r8]
test rax, rax
je 0x1400028e1
movzx eax, word [rcx + r9]
test ax, ax
je 0x1400028d2
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400028b0
jmp 0x1400028d7
test rdx, rdx
jne 0x1400028e1
sub rcx, 2
mov r10d, 0x8007007a
mov word [rcx], bx
test r10d, r10d
jns 0x1400028f6
cmp r10d, 0x8007007a
jne 0x140003195
mov edx, 0x5c
mov qword [rsp + 0x8f0], rdi
lea rcx, [rbp + 0x1a0]
call fcn.14000420c
mov edx, 0x2e
lea rdi, [rax + 2]
mov rcx, rdi
call fcn.14000420c
mov rdx, rax
sub rdx, rdi
sar rdx, 1
inc rdx
lea rcx, [rdx - 1]
cmp rcx, rsi
ja 0x140003182
sub rsi, rdx
lea rax, [rbp + 0x5a0]
sub rdi, rax
lea rcx, [rbp + 0x5a0]
mov r8d, ebx
lea rax, [rdx + rsi]
test rax, rax
je 0x140002980
movzx eax, word [rcx + rdi]
test ax, ax
je 0x140002971
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140002950
jmp 0x140002976
test rdx, rdx
jne 0x140002980
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], bx
test r8d, r8d
jns 0x140002995
cmp r8d, 0x8007007a
jne 0x140003182
lea r9, [rbp + 0x5a0]
lea r8, [rbp + 0x3a0]
lea rdx, str._s_s.log
lea rcx, [rbp - 0x60]
call fcn.140003210
mov ecx, 0x1e
call fcn.1400032e4
xor edx, edx
mov qword [rsp + 0x68], rbx
lea rcx, [rbp + 0x1a0]
mov rsi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov dword [rsp + 0x60], eax
call fcn.1400032e4
mov r8d, dword [rsp + 0x60]
lea rcx, [rbp + 0x1a0]
mov r9, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140002a13
lea rcx, str.Cannot_get_VerInfo.__r_n
call fcn.1400031b0
mov eax, 1
jmp 0x140003120
lea r9, [rsp + 0x60]
mov rcx, rdi
lea r8, [rsp + 0x68]
lea rdx, [0x14001e8b8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140002a47
lea rcx, str.Cannot_query_version.__r_n
call fcn.1400031b0
mov eax, 1
jmp 0x140003120
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x8b8], r14
mov qword [rsp + 0x8b0], r15
movzx ecx, word [rdx + 0xe]
movzx eax, word [rdx + 0xc]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
lea rdx, str._01d._01d._01d._01d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140003210
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, str._____Collecting_Information____________________r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
lea r8, [rbp - 0x60]
lea rdx, str.LogPath__s__r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
lea r8, [rbp + 0x3a0]
lea rdx, str.ExeDirPath__s__r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
lea r8, [rbp + 0x5a0]
lea rdx, str.ExeFileName__s__r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r8, rsi
lea rdx, str.ExeVersion__s__r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
movups xmm0, xmmword [0x140015380]
mov r9d, 0x12
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
mov edi, ebx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002b9b
xorps xmm0, xmm0
lea rax, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
xor r9d, r9d
mov dword [rbp - 0x80], 0x20
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140002b92
nop dword [rax]
lea rax, [rbp - 0x80]
inc edi
mov r9d, edi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140002b70
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
movsxd r14, edi
mov eax, 0x468
mul r14
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x70], r14
cmovo rax, rdi
mov rcx, rax
call fcn.1400032e4
mov qword [rsp + 0x58], rax
mov r15, rax
mov rdx, r14
test r14, r14
je 0x140002bf2
lea rcx, [rax + 0x1c]
mov dword [rcx - 4], ebx
mov dword [rcx], edi
mov qword [rcx + 4], rbx
mov qword [rcx + 0xc], rbx
mov dword [rcx + 0x444], ebx
lea rcx, [rcx + 0x468]
sub rdx, 1
jne 0x140002bd2
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.1400018b0
mov dword [rsp + 0x40], ebx
mov edi, ebx
mov r12d, 1
test r14, r14
jle 0x14000301c
mov rsi, r14
mov qword [rsp + 0x50], r14
lea r14d, [r12 + 2]
mov qword [rsp + 0x8c0], r13
add r15, 4
nop dword [rax]
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r8d, edi
lea rdx, str._____Candidate_Drive___d____________________r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov rax, rbx
cmp dword [r15 + 0x1c], r12d
jne 0x140002c75
lea rdx, str.Removable_disk__never_be_a_main_storage_condidate._r_n
mov qword [r15 + 0x44], rbx
lea rcx, [rbp - 0x60]
call fcn.140001120
jmp 0x140002fef
mov ecx, dword [r15 + 0x14]
cmp ecx, 7
jne 0x140002c97
lea rdx, str.Removable_external_USB_HDD__never_be_a_main_storage_condidate._r_n
mov qword [r15 + 0x44], rbx
lea rcx, [rbp - 0x60]
call fcn.140001120
jmp 0x140002fef
cmp dword [r15 + 0x20], r12d
jne 0x140002cb6
lea rdx, str.Optane_cache_disk__never_be_a_main_storage_condidate._r_n
mov qword [r15 + 0x44], rbx
lea rcx, [rbp - 0x60]
call fcn.140001120
jmp 0x140002fef
mov edx, dword [r15 + 0x45c]
cmp edx, 4
jl 0x140002cc9
mov eax, 8
jmp 0x140002d2b
cmp dword [r15 + 0x28], ebx
je 0x140002cd6
mov eax, 7
jmp 0x140002d2b
cmp dword [r15 + 0x24], ebx
je 0x140002ce3
mov eax, 7
jmp 0x140002d2b
cmp ecx, 0x11
je 0x140002d26
test edx, edx
jg 0x140002d26
mov edx, dword [r15 + 0x18]
cmp ecx, 8
jne 0x140002d0c
test edx, edx
jne 0x140002cfe
lea eax, [rdx + 5]
jmp 0x140002d2b
cmp ecx, 8
jne 0x140002d0c
test edx, edx
je 0x140002d2b
lea eax, [rcx - 4]
jmp 0x140002d2b
cmp ecx, 0xb
jne 0x140002d1c
test edx, edx
mov rax, r12
cmove rax, r14
jmp 0x140002d2b
cmp ecx, 0xc
jne 0x140002d2b
lea eax, [rcx - 0xa]
jmp 0x140002d2b
mov eax, 6
imul rax, rax, 0x3b9aca00
cmp qword [r15 + 0x3c], 3
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x48], rax
jbe 0x140002d84
cmp dword [r15 + 0x24], ebx
je 0x140002d67
lea rdx, str.Its_one_of_TG_disks__bigger_get_weight._r_n
call fcn.140001120
mov rax, qword [r15 + 0x3c]
add rax, 0x1388
imul r13, rax, 0x3e8
jmp 0x140002d93
lea rdx, str.Its_not_TG_disks__smaller_get_weight._r_n
call fcn.140001120
imul r13, qword [r15 + 0x3c], 0xfffffffffffffc18
add r13, 0x989680
jmp 0x140002d93
lea rdx, str.Too_small_to_be_OS_disk._r_n
call fcn.140001120
mov r13, rbx
mov eax, dword [r15 + 0x30]
lea rdx, str.Drive__d_.Path_s_r_n
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp - 0x60]
neg eax
mov eax, 0x32
sbb rsi, rsi
sub eax, dword [r15 - 4]
mov r14d, eax
and esi, 0x64
add rax, rsi
add rax, qword [rsp + 0x48]
add rax, r13
mov qword [r15 + 0x44], rax
movsxd rax, edi
imul rdi, rax, 0x468
add rdi, qword [rsp + 0x58]
lea r9, [rdi + 0x50]
call fcn.140001120
lea r9, [rdi + 0x258]
mov edi, dword [rsp + 0x40]
mov r8d, edi
lea rdx, str.Drive__d_.DeviceID_s_r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15]
lea rdx, str.Drive__d_.Index_x_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 4]
lea rdx, str.Drive__d_.Port_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 8]
lea rdx, str.Drive__d_.Bus_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0xc]
lea rdx, str.Drive__d_.TargetId_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x10]
lea rdx, str.Drive__d_.Lun_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x1c]
lea rdx, str.Drive__d_.Removable_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x20]
lea rdx, str.Drive__d_.isIntelOptaneCache_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x24]
lea rdx, str.Drive__d_.isIntelTGDisks_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
movzx r9d, byte [r15 + 0x2c]
lea rdx, str.Drive__d_.DeviceType_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x14]
lea rdx, str.Drive__d_.BusType_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x45c]
lea rdx, str.Drive__d_.NVMeGen_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x18]
mov r8d, edi
lea rdx, str.Drive__d_.SeekPenalty_d_r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9, qword [rsp + 0x48]
lea rdx, str.Drive__d_.weight_speed_I64u_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9, qword [r15 + 0x3c]
lea rdx, str.Drive__d_.Size_dGB_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9, r13
lea rdx, str.Drive__d_.weight_size_I64u_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x34]
lea rdx, str.Drive__d_.PartitionCount_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 + 0x30]
lea rdx, str.Drive__d_.IsSysDisk_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, esi
lea rdx, str.Drive__d_.weight_SysDisk_I64u_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, dword [r15 - 4]
lea rdx, str.Drive__d_.Order_d_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9d, r14d
lea rdx, str.Drive__d_.weight_order_I64u_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r9, qword [r15 + 0x44]
lea rdx, str.Drive__d_.Weight_I64u_r_n
mov r8d, edi
lea rcx, [rbp - 0x60]
call fcn.140001120
mov rsi, qword [rsp + 0x50]
mov r14d, 3
inc edi
add r15, 0x468
sub rsi, r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x50], rsi
jne 0x140002c30
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x58]
mov r13, qword [rsp + 0x8c0]
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, str._____Pick_Drive_By_Weight____________________r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov esi, 0x3e7
test r14, r14
jle 0x1400030ba
lea rdi, [r15 + 0x48]
nop word [rax + rax]
mov rax, qword [rdi]
lea rdx, str.Compare_Drive_d_Index:_d__Weight:_I64u__to_Current_Index:_d__Weight:_I64u__r_n
mov r9d, dword [rdi - 0x44]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], r12
mov r8d, ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.140001120
mov rax, qword [rdi]
cmp rax, r12
jb 0x1400030ab
mov r9, rax
lea rdx, str.New_default_index___d__with_weight___I64u__r_n
mov r8d, ebx
lea rcx, [rbp - 0x60]
mov esi, ebx
mov r12, rax
call fcn.140001120
inc ebx
add rdi, 0x468
sub r14, 1
jne 0x140003060
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, [0x14001e920]
lea rcx, [rbp - 0x60]
call fcn.140001120
lea rdx, str._____Report____________________r_n
lea rcx, [rbp - 0x60]
call fcn.140001120
mov r14, qword [rsp + 0x8b8]
lea rcx, [rbp - 0x60]
cmp esi, 0x3e7
jne 0x140003152
lea rdx, str.DestinationUNKNOWN_r_n
call fcn.140001120
lea rcx, str.DestinationUNKNOWN
call fcn.1400031b0
mov eax, esi
mov r15, qword [rsp + 0x8b0]
mov rdi, qword [rsp + 0x8f0]
mov rbx, qword [rsp + 0x8e0]
mov rsi, qword [rsp + 0x8e8]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140003290
add rsp, 0x8c8
pop r12
pop rbp
ret
movsxd rax, esi
lea rdx, str.Destination.PHYSICALDRIVE_d_r_n
imul rbx, rax, 0x468
mov r8d, dword [rbx + r15]
call fcn.140001120
mov edx, dword [rbx + r15]
lea rcx, str.Destination.PHYSICALDRIVE_d
call fcn.1400031b0
mov eax, dword [rbx + r15]
jmp 0x140003118
lea rcx, str.Could_not_found_the_exe_file_name.__r_n
call fcn.1400031b0
mov eax, 1
jmp 0x140003120
lea rcx, str.Could_not_found_the_exe_folder_path.__r_n
call fcn.1400031b0
mov eax, 1
jmp 0x140003128