Function at 0x4176c5
Capabilities:
Get file version info

Disassembly:
push 0xa8
mov eax, 0x46b359
call fcn.00440dbc
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x94], esi
call fcn.00402568
and dword [ebp - 4], 0
lea ecx, [ebp - 0xb0]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x417726
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x41795a
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
push ebx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
call fcn.0041746f
mov edi, dword [ebp - 0xa8]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push edi
cmovae eax, dword [ebp - 0x40]
push ebx
push 0
push eax
mov byte [ebp - 4], 2
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4178ae
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x70]
call fcn.004024de
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4178a6
cmp dword [ebp - 0x98], 4
jb 0x4178a6
mov ecx, dword [ebp - 0x9c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x58]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.004286d5
add esp, 0x10
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41789e
push dword [ebp - 0x94]
lea ecx, [ebp - 0x88]
call fcn.004024de
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x417893
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41787b
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], eax
cmp ecx, 0x1000
jb 0x417872
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404daa
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push ecx
push eax
call fcn.00440d36
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004050d4
lea ecx, [ebp - 0x88]
call fcn.00405209
lea ecx, [ebp - 0x58]
call fcn.00405209
lea ecx, [ebp - 0x70]
call fcn.00405209
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402481
test edi, edi
je 0x417902
mov eax, dword [ebp - 0xa0]
sub eax, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], eax
cmp eax, 0x1000
jb 0x4178f9
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404daa
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
push eax
push edi
call fcn.00440d36
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41794b
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
cmp eax, 0x1000
jb 0x417942
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404daa
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.00440d36
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x40]
call fcn.0040522f
mov eax, esi
call fcn.00440d6b
ret