Function at 0x413aac
Capabilities:
Get file version info

Disassembly:
push 0xa8
mov eax, 0x4679e6
call fcn.0043e197
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x94], esi
call fcn.00401ff7
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 0x413b0d
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 0x413d41
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.00413856
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 0x413c95
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x70]
call fcn.00401f6d
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 0x413c8d
cmp dword [ebp - 0x98], 4
jb 0x413c8d
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.00426423
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 0x413c85
push dword [ebp - 0x94]
lea ecx, [ebp - 0x88]
call fcn.00401f6d
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x413c7a
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x413c62
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], eax
cmp ecx, 0x1000
jb 0x413c59
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004047b9
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push ecx
push eax
call fcn.0043e111
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.00404ae3
lea ecx, [ebp - 0x88]
call fcn.00404c18
lea ecx, [ebp - 0x58]
call fcn.00404c18
lea ecx, [ebp - 0x70]
call fcn.00404c18
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00401f10
test edi, edi
je 0x413ce9
mov eax, dword [ebp - 0xa0]
sub eax, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], eax
cmp eax, 0x1000
jb 0x413ce0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004047b9
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
pop ecx
pop ecx
push eax
push edi
call fcn.0043e111
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413d32
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
cmp eax, 0x1000
jb 0x413d29
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004047b9
mov eax, dword [ebp - 0x90]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.0043e111
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.00404c3e
mov eax, esi
call fcn.0043e146
ret