Function at 0x140212260
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rsi, r8
mov r12, rdx
xor edi, edi
mov dword [rsp + 0x30], edi
cmp qword [r8 + 0x18], 8
jb 0x1402122ad
mov rcx, qword [r8]
jmp 0x1402122b0
mov rcx, rsi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
jne 0x14021233a
cmp qword [rsi + 0x18], 8
jb 0x1402122c8
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rsi
lea rax, str.Unable_to_get_file_version_info_for_file:__s
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
lea rdx, str.FileVersionSubstitution.cpp
lea ecx, [r9 - 0x27]
call fcn.1401fc9c0
mov qword [r12 + 0x18], 7
mov qword [r12 + 0x10], rdi
mov word [r12], di
mov rdx, qword [str._UNKNOWN]
cmp word [rdx], di
je 0x14021232a
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140212320
mov r8, rdi
mov rcx, r12
call fcn.14002c3d0
jmp 0x1402126c4
mov rcx, r14
call fcn.14026ded8
mov rbx, rax
mov qword [rbp + 0x60], rax
cmp qword [rsi + 0x18], 8
jb 0x140212355
mov rcx, qword [rsi]
jmp 0x140212358
mov rcx, rsi
mov r9, rbx
mov r8d, r14d
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
je 0x1402123e0
cmp qword [rsi + 0x18], 8
jb 0x140212374
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rsi
lea rax, str.Unable_to_get_file_version_data_for_file:__s
mov qword [rsp + 0x20], rax
mov r9d, 0x2f
lea r8, str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
lea rdx, str.FileVersionSubstitution.cpp
lea ecx, [r9 - 0x2e]
call fcn.1401fc9c0
mov qword [r12 + 0x18], 7
mov qword [r12 + 0x10], rdi
mov word [r12], di
mov rdx, qword [str._UNKNOWN]
cmp word [rdx], 0
je 0x1402123d0
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x1402123c6
mov r8, rdi
mov rcx, r12
call fcn.14002c3d0
jmp 0x1402126b2
mov qword [rbp + 0x68], rdi
mov dword [rbp + 0x70], edi
lea r9, [rbp + 0x70]
lea r8, [rbp + 0x68]
lea rdx, [0x140327fbc]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14021244f
cmp qword [rsi + 0x18], 8
jb 0x14021240c
mov rsi, qword [rsi]
lea rax, str.VerQueryValue_failed_for_file:__s
mov r9d, reloc.WS2_32.dll_getservbyname
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea r8, str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
lea rdx, str.FileVersionSubstitution.cpp
mov ecx, 1
call fcn.1401fc9c0
mov rdx, qword [str._UNKNOWN]
mov rcx, r12
call fcn.14002c170
jmp 0x1402126b2
mov rax, qword [rbp + 0x68]
test rax, rax
jne 0x140212471
cmp qword [rsi + 0x18], 8
jb 0x140212462
mov rsi, qword [rsi]
lea rax, str.Cant_read_version_info_for:__s
mov r9d, 0x3d
jmp 0x140212419
movzx edx, word [rax + 0xc]
lea rcx, [rbp + 0x38]
call fcn.140029430
mov r15, rax
mov rcx, qword [rbp + 0x68]
movzx edx, word [rcx + 0xe]
lea rcx, [rbp + 0x18]
call fcn.140029430
mov r14, rax
mov rcx, qword [rbp + 0x68]
movzx edx, word [rcx + 8]
lea rcx, [rbp - 8]
call fcn.140029430
mov rsi, rax
mov rcx, qword [rbp + 0x68]
movzx edx, word [rcx + 0xa]
lea rcx, [rbp - 0x28]
call fcn.140029430
nop
lea r8, [0x140335310]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140044b70
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400784b0
nop
lea r8, [0x140335310]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140044b70
nop
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400784b0
nop
lea r8, [0x140335310]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140044b70
nop
mov r8, r15
mov rdx, rax
mov rcx, r12
call fcn.1400784b0
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140212546
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14002e610
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140212576
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14002e610
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1402125a5
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14002e610
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1402125d0
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.14002e610
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1402125fa
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.14002e610
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x140212624
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.14002e610
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x14021264e
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.14002e610
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rdi
mov word [rbp - 8], di
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x140212678
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.14002e610
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], rdi
mov word [rbp + 0x18], di
mov r8, qword [rbp + 0x50]
cmp r8, 8
jb 0x1402126a2
inc r8
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x38]
call fcn.14002e610
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], rdi
mov word [rbp + 0x38], di
test rbx, rbx
je 0x1402126c4
mov edx, 1
mov rcx, rbx
call fcn.14026e340
mov rax, r12
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret