Function at 0x413faa
Capabilities:
Get file version info

Disassembly:
push 0xa8
mov eax, 0x468132
call fcn.0043e6c7
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x94], esi
call fcn.00402427
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 0x41400b
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 0x41423f
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.00413d54
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 0x414193
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x70]
call fcn.0040239d
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 0x41418b
cmp dword [ebp - 0x98], 4
jb 0x41418b
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.004268eb
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 0x414183
push dword [ebp - 0x94]
lea ecx, [ebp - 0x88]
call fcn.0040239d
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x414178
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x414160
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], eax
cmp ecx, 0x1000
jb 0x414157
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404c75
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push ecx
push eax
call fcn.0043e641
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.00404f9f
lea ecx, [ebp - 0x88]
call fcn.004050d4
lea ecx, [ebp - 0x58]
call fcn.004050d4
lea ecx, [ebp - 0x70]
call fcn.004050d4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402340
test edi, edi
je 0x4141e7
mov eax, dword [ebp - 0xa0]
sub eax, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], eax
cmp eax, 0x1000
jb 0x4141de
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404c75
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
push eax
push edi
call fcn.0043e641
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x414230
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
cmp eax, 0x1000
jb 0x414227
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404c75
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.0043e641
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.004050fa
mov eax, esi
call fcn.0043e676
ret