Function at 0x4ff420
Capabilities:
Get file version info

Disassembly:
sub esp, 0x24
push ebx
mov ebx, eax
test ebx, ebx
push esi
mov esi, ecx
je 0x4ff6b5
push ebp
push edi
mov edi, 0x8cccd0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.00412f10
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp - 4]
lea eax, [edx - 4]
test eax, eax
mov ecx, 4
jge 0x4ff45a
xor eax, eax
lea ebx, [eax + 4]
cmp ebx, edx
jle 0x4ff465
mov ecx, edx
sub ecx, eax
cmp eax, edx
jle 0x4ff46b
xor ecx, ecx
test eax, eax
jne 0x4ff482
cmp ecx, edx
jne 0x4ff482
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.00412df0
jmp 0x4ff4b8
push eax
mov eax, ebp
lea edx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.004f47b0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00412df0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
je 0x4ff4b8
cmp eax, 0x8cccc8
je 0x4ff4b8
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x18]
push str..exe
push edi
call dword [sym.imp.MSVCR71.dll__stricmp]
mov ebx, eax
lea eax, [edi - 8]
add esp, 8
test eax, eax
je 0x4ff4e4
cmp eax, 0x8cccc8
je 0x4ff4e4
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
je 0x4ff4fa
push str..exe
lea eax, [esp + 0x14]
call fcn.00412e50
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4ff69c
push ebx
call fcn.005354dd
mov edi, eax
add esp, 4
test edi, edi
je 0x4ff69c
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4ff693
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push 0x70e1b4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4ff693
mov eax, dword [esp + 0x20]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov dx, word [eax + 8]
mov word [esi + 2], dx
mov cx, word [eax + 0xe]
mov word [esi + 4], cx
mov ax, word [eax + 0xc]
movzx edx, ax
push edx
movzx edx, word [esi]
mov word [esi + 6], ax
movzx eax, cx
movzx ecx, word [esi + 2]
push eax
push ecx
push edx
lea ebp, [esi + 0xc]
push str._d._d._d._d
mov edx, ebp
call fcn.004f3ce0
add esi, 8
add esp, 0x14
mov ecx, esi
call fcn.00412f90
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4ff68f
cmp dword [esp + 0x14], 4
jb 0x4ff68f
mov eax, dword [esp + 0x24]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x8cccd0
call fcn.004f3ce0
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4ff686
mov ebx, dword [esp + 0x28]
mov eax, esi
call fcn.00412f10
push 0x29
push 0x28
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.004f3010
mov ecx, esi
call fcn.00412ec0
lea ecx, [esp + 0x30]
call fcn.00412fb0
mov edx, dword [esi]
mov eax, dword [edx - 4]
test eax, eax
je 0x4ff686
push 0x712b28
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push esi
push ecx
mov eax, 0x703e34
call fcn.004129c0
add esp, 8
call fcn.00412a60
mov ecx, ebp
call fcn.00489260
lea ecx, [esp + 0x30]
call fcn.00412fb0
lea ecx, [esp + 0x2c]
call fcn.00412fb0
lea ecx, [esp + 0x18]
call fcn.00412fb0
mov ebp, dword [esp + 0x10]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 8]
test eax, eax
pop edi
pop ebp
je 0x4ff6b5
cmp eax, 0x8cccc8
je 0x4ff6b5
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop ebx
add esp, 0x24
ret