Function at 0x40e77c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
mov eax, 0x4db16c
call fcn.004c9c18
mov word [ebp - 0x5c], 0x14
mov edx, 0x4d72cd
lea eax, [ebp - 4]
call fcn.004d443c
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
push edx
mov word [ebp - 0x5c], 0x20
xor ecx, ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
inc dword [ebp - 0x50]
mov eax, dword [0x4e76c8]
mov eax, dword [eax]
call fcn.0048a544
cmp dword [ebp - 8], 0
je 0x40e7d8
mov edx, dword [ebp - 8]
jmp 0x40e7dd
mov edx, 0x4d72ce
push edx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x74], eax
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x5c], 8
cmp dword [ebp - 0x74], 0
jne 0x40e866
mov word [ebp - 0x5c], 0x2c
mov edx, 0x4d72cf
lea eax, [ebp - 0xc]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x5c], 0x38
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x5c], 0x2c
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x40ec97
push dword [ebp - 0x74]
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push dword [ebp - 0x70]
mov word [ebp - 0x5c], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x50]
mov eax, dword [0x4e76c8]
mov eax, dword [eax]
call fcn.0048a544
cmp dword [ebp - 0x10], 0
je 0x40e8a4
mov edx, dword [ebp - 0x10]
jmp 0x40e8a9
mov edx, 0x4d72d3
push edx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
setne al
and eax, 1
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d459c
pop ecx
test cl, cl
je 0x40ea4a
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x7c]
push edx
push str.VarFileInfoTranslation
push dword [ebp - 0x78]
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x80], 4
jb 0x40ea4a
mov word [ebp - 0x5c], 0x5c
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x7c]
mov ax, word [eax + 2]
and ax, 0xffff
movzx eax, ax
mov edx, dword [ebp - 0x7c]
mov dx, word [edx]
and dx, 0xffff
movzx edx, dx
shl edx, 0x10
or eax, edx
mov edx, 8
call fcn.0043e324
mov word [ebp - 0x5c], 0x50
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov word [ebp - 0x5c], 0x68
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
inc dword [ebp - 0x50]
lea edx, [ebp - 0x14]
mov eax, str.StringFileInfo_
call fcn.004d4894
lea edx, [ebp - 0x18]
push edx
mov edx, str.FileVersion
lea eax, [ebp - 0x1c]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x50]
pop eax
call fcn.004d45f4
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
call fcn.004d4474
inc dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
cmp dword [edx], 0
je 0x40e9a9
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx]
jmp 0x40e9ae
mov eax, 0x4d730b
push eax
push dword [ebp - 0x78]
call sub.version.dll_VerQueryValueA
test eax, eax
setne dl
and edx, 1
push edx
dec dword [ebp - 0x50]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d459c
pop ecx
test cl, cl
je 0x40ea34
mov word [ebp - 0x5c], 0x74
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x7c]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.004d45cc
dec dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x5c], 8
push dword [ebp - 0x78]
call sub.kernel32.dll_GlobalFree
mov word [ebp - 0x5c], 0x80
mov edx, 0x4d730c
lea eax, [ebp - 0x2c]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004d4680
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004d459c
pop ecx
test cl, cl
je 0x40eaed
mov word [ebp - 0x5c], 0x8c
mov edx, 0x4d730d
lea eax, [ebp - 0x30]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x5c], 0x98
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x5c], 0x8c
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x40ec97
xor ecx, ecx
mov cl, byte [ebp + 0xc]
dec ecx
jne 0x40eb39
mov word [ebp - 0x5c], 0xa4
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x5c], 0xb0
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x5c], 0xa4
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x40ec97
mov word [ebp - 0x5c], 0xbc
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x48]
push eax
inc dword [ebp - 0x50]
xor edx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x38]
push ecx
inc dword [ebp - 0x50]
mov edx, 0x4d7311
lea eax, [ebp - 0x34]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.004d473c
mov edx, eax
inc edx
cmp dword [ebp - 4], 0
je 0x40eb83
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 4]
jmp 0x40eb85
xor ecx, ecx
lea eax, [ebp - 4]
call fcn.004d4760
lea edx, [ebp - 0x38]
push edx
mov edx, 0x4d7313
lea eax, [ebp - 0x3c]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x3c]
pop eax
call fcn.004d473c
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x44]
push edx
inc dword [ebp - 0x50]
mov edx, 0x4d7315
lea eax, [ebp - 0x40]
call fcn.004d443c
inc dword [ebp - 0x50]
lea edx, [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.004d473c
mov ecx, eax
lea eax, [ebp - 4]
xor edx, edx
call fcn.004d4760
cmp dword [ebp - 0x44], 0
je 0x40ebed
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx - 4]
jmp 0x40ebef
xor eax, eax
add ebx, eax
mov ecx, ebx
dec ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004d4760
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x5c], 0xc8
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x5c], 0xbc
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret