Function at 0x484da4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x484dad
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x484ff4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004066e0
mov eax, esi
call fcn.004066e0
test ebx, ebx
je 0x484fd1
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00406f24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x484fd1
mov eax, dword [ebp - 8]
call fcn.00404214
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x484fca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, ebx
call fcn.00406f24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x484fb1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x485004
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x484ef1
push 0x48502c
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.004122c0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.004122c0
push dword [ebp - 0x28]
push 0x485060
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00407c3c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.004078c8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x484ef1
cmp dword [ebp - 0x10], 1
jbe 0x484ef1
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00413264
mov ecx, eax
mov eax, edi
mov edx, ebx
call fcn.00406818
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x485084
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x484fb1
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov eax, dword [ebp - 0x1c]
movzx edi, word [eax + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
mov word [ebp - 0x14], ax
lea edx, [ebp - 0x30]
movzx eax, bx
call fcn.0041208c
push dword [ebp - 0x30]
push 0x485094
lea edx, [ebp - 0x34]
movzx eax, di
call fcn.0041208c
push dword [ebp - 0x34]
push 0x485094
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x12]
call fcn.0041208c
push dword [ebp - 0x38]
push 0x485094
lea edx, [ebp - 0x3c]
movzx eax, word [ebp - 0x14]
call fcn.0041208c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00407c3c
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov ecx, 0
call fcn.004078c8
mov eax, dword [esi]
mov edx, 0x4850a4
call fcn.00406ea0
jne 0x484fb1
mov eax, esi
call fcn.004066e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484fd1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484ffb
lea eax, [ebp - 0x3c]
mov edx, 8
call fcn.0040766c
lea eax, [ebp - 4]
call fcn.004066e0
ret