Function at 0x10007d1f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0x169
lea ecx, [ebp - 0x28]
call fcn.10046141
mov edi, dword [ebp - 0x28]
push 0x104
push dword [ebp + 8]
add edi, 0xc8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
je 0x10007d67
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x18], 1
jne 0x10007d6a
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x10007d7f
push 0x64
mov ecx, esi
call fcn.10046168
mov eax, dword [esi]
mov word [eax], bx
cmp dword [ebp - 0x18], ebx
je 0x10007d96
mov ecx, dword [ebp + 0xc]
push 0x64
call fcn.10046168
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov word [eax], bx
cmp dword [0x100e2c6c], ebx
jne 0x10007def
lea eax, [ebp - 0x1c]
push eax
push 0x100e2c68
mov esi, str.Version
push esi
push str.GetFileVersionInfoSizeExW
mov dword [ebp - 0x1c], ebx
call fcn.10040e9d
lea eax, [ebp - 0x1c]
push eax
push 0x100e2c6c
push esi
push str.GetFileVersionInfoExW
call fcn.10040e9d
add esp, 0x20
cmp dword [0x100e2c68], ebx
je 0x10007de1
cmp dword [0x100e2c6c], ebx
jne 0x10007def
or dword [0x100e2c68], 0xffffffff
or dword [0x100e2c6c], 0xffffffff
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], ebx
call fcn.10003ea0
cmp dword [0x100e2c6c], 0xffffffff
pop ecx
mov byte [ebp - 0x34], al
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
push edi
jne 0x10007e22
call sub.VERSION.dll_GetFileVersionInfoSizeW
jmp 0x10007e43
push dword [ebp + 0x18]
call dword [0x100e2c68]
mov esi, eax
cmp esi, ebx
jne 0x10007e45
push 2
pop eax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call dword [0x100e2c68]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
jne 0x10007e68
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x10008062
cmp eax, ebx
jne 0x10007e61
xor eax, eax
inc eax
mov dword [ecx], eax
jmp 0x10008062
lea eax, [esi + 0x1a0]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.10045fcc
mov eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
lea ebx, [eax + 0x190]
push ebx
push esi
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100e2c6c]
cmp eax, 0xffffffff
push edi
jne 0x10007ea4
call sub.VERSION.dll_GetFileVersionInfoW
jmp 0x10007ea9
push dword [ebp + 0x18]
call eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100c7828
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0xc]
xor esi, esi
xor edi, edi
xor edx, edx
cmp dword [ebp + 0xc], esi
jne 0x10007ed2
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
jmp 0x10007ed8
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
or edx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
or ecx, edi
push ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x10007f11
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jne 0x10007f25
cmp dword [ebp + 0xc], esi
jne 0x10007fb5
push dword [ebp - 0x1c]
push str.StringFileInfo_08lxProductVersion
push dword [ebp - 0x14]
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
test eax, eax
mov esi, eax
je 0x10007f65
cmp word [eax], 0
je 0x10007f65
push eax
call fcn.10004586
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10007fb5
test eax, eax
je 0x10007fa2
cmp word [esi], 0
je 0x10007fa2
mov ecx, dword [ecx]
lea edx, [esi + 0xc6]
jmp 0x10007f98
mov ax, word [esi]
inc esi
inc esi
test ax, ax
mov word [ecx], ax
je 0x10007f9c
call fcn.10002df6
test al, al
jne 0x10007f9c
inc ecx
inc ecx
cmp esi, edx
jb 0x10007f80
and word [ecx], 0
jmp 0x10007fb5
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ecx]
call fcn.1000462d
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x10007fc5
cmp dword [ebp + 0xc], 0
je 0x1000805a
push dword [ebp - 0x1c]
push str.StringFileInfo_08lxFileVersion
push dword [ebp - 0x14]
call edi
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
test eax, eax
mov esi, eax
je 0x10008005
cmp word [eax], 0
je 0x10008005
push eax
call fcn.10004586
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x18], 0
je 0x1000805a
test eax, eax
je 0x10008044
cmp word [esi], 0
je 0x10008044
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [esi + 0xc6]
jmp 0x1000803a
mov ax, word [esi]
inc esi
inc esi
test ax, ax
mov word [ecx], ax
je 0x1000803e
call fcn.10002df6
test al, al
jne 0x1000803e
inc ecx
inc ecx
cmp esi, edx
jb 0x10008022
and word [ecx], 0
jmp 0x1000805a
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.1000462d
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1003f96c
cmp byte [ebp - 0x34], 0
pop edi
pop esi
pop ebx
je 0x10008074
push dword [ebp - 0x38]
call fcn.10003eb1
pop ecx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.1003f96c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret