Function at 0x4174eb
Capabilities:
Get file version info

Disassembly:
push 0xa4
mov eax, 0x465a0c
call fcn.0043e189
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x98], edi
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004052f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x41759a
mov eax, dword [ebp - 0x2c]
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
cmp eax, 8
jb 0x4178ed
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
cmp eax, 0x1000
jb 0x4178e4
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x94]
jmp 0x4178dc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call fcn.00417a31
mov ebx, dword [ebp - 0xa4]
add esi, ebx
push esi
push ebx
call fcn.00417355
pop ecx
pop ecx
mov dword [ebp - 0xa0], esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
push dword [ebp - 0x8c]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
mov byte [ebp - 4], 2
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x1000
test eax, eax
je 0x4177f1
xor eax, eax
mov dword [ebp - 0x44], 0xf
push str.VarFileInfoTranslation
mov byte [ebp - 0x8c], al
lea ecx, [ebp - 0x58]
push dword [ebp - 0x8c]
mov dword [ebp - 0x58], eax
push 0x18
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x58], al
call fcn.00401f64
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4177ab
cmp dword [ebp - 0xa8], 4
jb 0x4177ab
mov ecx, dword [ebp - 0x98]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x88]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0042598f
add esp, 0x10
cmp dword [ebp - 0x74], 0x10
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4177a0
mov ecx, dword [ebp - 0x90]
and dword [ebp - 0x70], 0
and dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4176e1
sub ecx, edx
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x70]
call fcn.004058cd
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41773f
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], ecx
cmp eax, esi
jb 0x417736
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x94]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004055c8
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x4177a0
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], ecx
cmp eax, esi
jb 0x417797
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x8c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x94]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
call fcn.004056fd
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4177f1
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
cmp eax, esi
jb 0x4177e8
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x8c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x90]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004055c8
test ebx, ebx
je 0x41784c
mov eax, dword [ebp - 0x9c]
sub eax, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
cmp eax, esi
jb 0x417843
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
pop ecx
pop ecx
push eax
push ebx
call fcn.0043e103
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x417892
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
cmp eax, esi
jb 0x417889
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x8c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x90]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 8
jb 0x4178ed
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
cmp eax, esi
jb 0x4178e4
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004051b1
mov eax, dword [ebp - 0x8c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x90]
push eax
push ecx
call fcn.0043e103
pop ecx
pop ecx
mov eax, edi
call fcn.0043e138
ret