Function at 0x49385c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x493864
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x493b58
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4f8ee8]
mov eax, dword [eax]
call fcn.00492568
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x493b18
mov eax, dword [ebp - 0x10]
call fcn.00409280
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x493b11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x493b64
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x14], 4
jb 0x493950
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov ecx, 2
mov edx, dword [ebp - 0x30]
call fcn.0040a370
lea ecx, [ebp - 0x38]
mov edx, 4
mov eax, dword [ebp - 0x34]
call fcn.00409ae4
mov edx, dword [ebp - 0x30]
add edx, 2
lea eax, [ebp - 0x34]
mov ecx, 2
call fcn.0040a370
lea ecx, [ebp - 0x40]
mov edx, 4
mov eax, dword [ebp - 0x34]
call fcn.00409ae4
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.00405238
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x493b88
push dword [ebp - 0x3c]
push 0x493ba0
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004052ac
mov eax, dword [ebp - 0x44]
call fcn.004053ec
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x493b88
push dword [ebp - 0x3c]
push 0x493bb8
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004052ac
mov eax, dword [ebp - 0x48]
call fcn.004053ec
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
cmp byte [ebp - 1], 0
je 0x493a08
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x24]
call fcn.00403a5c
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x4c]
call fcn.00405174
push dword [ebp - 0x4c]
push 0x493bd0
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x20]
call fcn.00405108
push dword [ebp - 0x150]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.004052ac
jmp 0x493af8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 0x20]
call fcn.00405108
mov edx, dword [ebp - 0x154]
mov eax, 0x493bdc
call fcn.0040a064
dec eax
push eax
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 0x20]
call fcn.00405108
mov eax, dword [ebp - 0x158]
xor edx, edx
pop ecx
call fcn.0040544c
mov edx, dword [ebp - 0x28]
mov eax, 0x493bdc
call fcn.0040a064
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004051ec
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, eax
mov edx, dword [ebp - 0x18]
inc edx
mov eax, dword [ebp - 0x28]
call fcn.0040544c
mov eax, dword [ebp - 0x15c]
call fcn.00409b3c
test eax, eax
jne 0x493abe
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.00404fa8
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x493bdc
call fcn.0040a064
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.0040544c
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x24]
call fcn.00403a5c
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x160]
call fcn.00405174
push dword [ebp - 0x160]
push 0x493bd0
push dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.004052ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493b18
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.00402b5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493b5f
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00404f34
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00404f34
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404f34
lea eax, [ebp - 0xc]
call fcn.00404f10
ret