Function at 0x4cb368
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00405048
xor eax, eax
push ebp
push 0x4cb596
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
xor eax, eax
push ebp
push 0x4cb55e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x31], 0
je 0x4cb554
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0040bae0
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
push 0x4cb5a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.00407c70
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
push 0x4cb5a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 8]
and eax, 0xffff0000
shr eax, 0x10
and eax, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, 4
call fcn.0040ad94
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
mov ecx, 0xff
call fcn.00404e34
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
add eax, 0x5d
mov cl, 4
call fcn.0040339c
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, 4
call fcn.0040ad94
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x10c]
mov ecx, 0xff
call fcn.00404e34
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
add eax, 0x62
mov cl, 4
call fcn.0040339c
mov eax, dword [ebp - 4]
lea edx, [eax + 0x5d]
lea eax, [ebp - 0x120]
call fcn.00403390
mov eax, dword [ebp - 4]
lea edx, [eax + 0x62]
lea eax, [ebp - 0x120]
mov cl, 8
call fcn.00403360
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
add eax, 0x54
mov cl, 8
call fcn.0040339c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cb570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb59d
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.00404b90
lea eax, [ebp - 0xc]
call fcn.00404b6c
ret