Function at 0x413eaa
Capabilities:
Get file version info

Disassembly:
push 0xa8
mov eax, 0x468065
call fcn.0043e5f7
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 0x413f0b
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 0x41413f
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.00413c54
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 0x414093
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 0x41408b
cmp dword [ebp - 0x98], 4
jb 0x41408b
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.0042681b
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 0x414083
push dword [ebp - 0x94]
lea ecx, [ebp - 0x88]
call fcn.0040239d
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x414078
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x414060
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], eax
cmp ecx, 0x1000
jb 0x414057
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404be9
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push ecx
push eax
call fcn.0043e571
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.00404f13
lea ecx, [ebp - 0x88]
call fcn.00405048
lea ecx, [ebp - 0x58]
call fcn.00405048
lea ecx, [ebp - 0x70]
call fcn.00405048
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402340
test edi, edi
je 0x4140e7
mov eax, dword [ebp - 0xa0]
sub eax, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], eax
cmp eax, 0x1000
jb 0x4140de
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404be9
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
push eax
push edi
call fcn.0043e571
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x414130
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
cmp eax, 0x1000
jb 0x414127
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404be9
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.0043e571
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.0040506e
mov eax, esi
call fcn.0043e5a6
ret