Function at 0x1400eddc0
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r14d, r9d
mov qword [rsp + 0x58], r8
mov r13, rdx
xor r8d, r8d
lea rdx, str.CBaseUtyMgr::GetFileVersion
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
mov edi, dword [rbp + 0x160]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
mov r9, r13
lea r8, str.lpszFile___s__bType___d__dwVerLen___d
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007780
xor ebx, ebx
mov r15d, ebx
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rsp + 0x50], ebx
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r12d, eax
test eax, eax
jne 0x1400eded0
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x1400ee171
lea edx, [rax + 0x64]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400edf0f
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x1400ee171
mov r9, rax
mov r8d, r12d
xor edx, edx
mov rcx, r13
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400ee071
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [rsp + 0x30], 4
jne 0x1400edf7a
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax + 2]
movzx edx, byte [rax + 3]
movzx r9d, byte [rax]
movzx r8d, byte [rax + 1]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str.StringFileInfo_02x_02x_02x_02x_
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400edf8b
lea rdx, str.StringFileInfo040904e4_
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [0x140305b28]
lea rdx, [0x1403102f0]
cmp r14d, 1
cmove rdx, rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp - 0x10]
lea r8, str._t_t_tVerInfo__s_
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [rsp + 0x30], ebx
je 0x1400ee040
mov rax, qword [rsp + 0x48]
movsd xmm0, qword [rax]
movsd qword [rsp + 0x70], xmm0
movsd xmm1, qword [rax + 8]
movsd qword [rsp + 0x78], xmm1
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x80], xmm0
movsd xmm1, qword [rax + 0x18]
movsd qword [rbp - 0x78], xmm1
movsd xmm0, qword [rax + 0x20]
movsd qword [rbp - 0x70], xmm0
movsd xmm1, qword [rax + 0x28]
movsd qword [rbp - 0x68], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rbp - 0x60], xmm0
movsd xmm1, qword [rax + 0x38]
movsd qword [rbp - 0x58], xmm1
mov r15d, 1
jmp 0x1400ee056
lea r8, str.0.0.0.0.0.0.0.0.0.0
mov edx, 0x20
lea rcx, [rsp + 0x70]
call fcn.140246628
lea r9, [rsp + 0x70]
lea r8, str._tFile_Version__s_
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r11d, ebx
test edi, edi
jle 0x1400ee119
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
nop
movzx eax, word [rcx]
cmp ax, 0x2e
je 0x1400ee0b4
cmp ax, 0x2c
je 0x1400ee0b4
cmp ax, 0x20
je 0x1400ee0b4
test ax, ax
je 0x1400ee0b4
mov word [rdx], ax
inc r11d
add rdx, 2
add rcx, 2
cmp r11d, edi
jl 0x1400ee090
test r11d, r11d
je 0x1400ee119
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea r10d, [rdi - 2]
lea rcx, [rsp + 0x70]
lea r8, [rbp - 0x50]
lea r9d, [rax + 0x2e]
cmp ebx, r10d
jne 0x1400ee104
mov word [rcx], r9w
add rcx, 2
movzx eax, word [r8]
mov word [rcx], ax
add rcx, 2
inc ebx
add r8, 2
cmp ebx, edi
jl 0x1400ee0f7
mov edx, dword [rbp + 0x168]
lea r8, [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140246628
mov r9, rbx
lea r8, str._t_t_tVersion__s_
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov r9d, r15d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, r15d
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x240]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret