Function at 0x4e5b44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x4e5b4d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046b8
xor eax, eax
push ebp
push 0x4e5fe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409000
test al, al
je 0x4e5fb5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004046c8
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4e5fb5
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4e5fae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4e5f98
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4e5ff8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x14], 0
je 0x4e5c18
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00407468
mov edx, dword [ebp - 0x14]
mov dx, word [edx]
call fcn.0040745c
lea ecx, [ebp - 0x1c]
mov edx, 8
call fcn.00408c0c
cmp edi, 1
jne 0x4e5c7b
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e6038
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 2
jne 0x4e5cde
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e6054
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 3
jne 0x4e5d41
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e606c
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 4
jne 0x4e5da4
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e6084
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 5
jne 0x4e5e07
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e609c
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 6
jne 0x4e5e6a
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e60b4
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 7
jne 0x4e5ecd
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e60cc
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 8
jne 0x4e5f29
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e60e8
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
cmp edi, 9
jne 0x4e5f85
push 0x4e601c
push dword [ebp - 0x1c]
push 0x4e6100
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404588
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x120]
call fcn.004094a4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e5f8d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004095f8
jmp 0x4e5f8d
lea eax, [ebp - 0x20]
call fcn.00404208
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.0040425c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5fb5
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5fef
lea eax, [ebp - 0x144]
mov edx, 9
call fcn.0040422c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040422c
lea eax, [ebp - 4]
call fcn.00404208
ret