Function at 0x40e318
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ca7a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4510e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
and dword [ebp - 4], 0
lea edi, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x5c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
push dword [edx]
lea eax, [ebp - 0x48]
push eax
call fcn.0040d4c0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
test ecx, ecx
je 0x40e3a2
call fcn.0040cf37
mov byte [ebp - 4], 3
jmp 0x40e3ae
push dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call fcn.0040ec95
pop ecx
shr eax, 0x1f
test al, al
je 0x40e3cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
lea ecx, [ebp - 0x44]
call fcn.0040dd83
mov eax, ebx
jmp 0x40e5ee
push edi
push dword [ebp - 0x44]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40e3b5
mov dword [ebp - 0x50], edi
push esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e7a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push esi
cmp eax, esi
jb 0x40e415
push edi
push dword [ebp - 0x20]
call fcn.00423cf0
mov eax, dword [ebp - 0x20]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x40e421
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040e857
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 8
push dword [ebp - 0x24]
sub eax, dword [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x44]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40e44f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
mov dword [ebx], eax
call fcn.0040dd25
jmp 0x40e3bd
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], edi
push eax
push str.StringFileInfo040904B0ProductVersion
push dword [ebp - 0x24]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e4e2
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40e4e2
mov ecx, dword [ebp - 0x54]
xor edx, edx
cmp word [ecx + eax*2 - 2], dx
jne 0x40e486
dec eax
mov dword [ebp - 0x4c], eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 4
mov byte [ebp - 0x60], dl
call fcn.0040eac2
push dword [ebp - 0x50]
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040e90b
pop ecx
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0xb4]
push eax
call fcn.0040e714
lea ecx, [ebp - 0xb4]
call fcn.0040de04
jmp 0x40e5c3
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x48]
push eax
push 0x44b250
push dword [ebp - 0x24]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e5c5
cmp dword [ebp - 0x4c], 0x34
jne 0x40e5c5
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x94], eax
call fcn.0040d3f2
push 7
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x94]
pop ecx
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [eax + 0xa]
lea edx, [ebp - 0x74]
push ecx
push ecx
push dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
push eax
call fcn.0040ebfc
add esp, 0x10
lea ecx, [ebp - 0x78]
mov edi, 0x44adec
mov edx, edi
call fcn.0040e2be
mov ecx, dword [ebp - 0x48]
mov esi, eax
movzx ecx, word [ecx + 8]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.0040ebfc
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.0040e2be
mov ecx, dword [ebp - 0x48]
mov esi, eax
movzx ecx, word [ecx + 0xe]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.0040ebfc
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.0040e2be
mov ecx, dword [ebp - 0x48]
lea edx, [eax + 4]
movzx ecx, word [ecx + 0xc]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [eax]
call fcn.0040ebfc
add esp, 0x10
xor edi, edi
lea ecx, [ebp - 0x24]
call fcn.0040dd25
lea ecx, [ebp - 0x44]
call fcn.0040dd83
mov dword [ebx], edi
jmp 0x40e3c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421c3b
leave
ret