Function at 0x40fb20
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x450296
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x469b70]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469b70]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [esp + 0x110]
mov ebp, dword [esp + 0x114]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00417336
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fb8d
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x30]
push ecx
push ebp
mov dword [esp + 0x110], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40fbf3
mov esi, dword [esp + 0x1c]
push 0x453f18
mov ecx, esi
call fcn.00401710
lea eax, [edi - 0x10]
mov dword [esp + 0x108], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fbec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40fd45
push esi
call fcn.00416ade
add esp, 4
mov edi, eax
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
shr eax, 2
xor esi, esi
test eax, eax
jle 0x40fcda
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x40fc40
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x3c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401710
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x110], 1
call fcn.00402bc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x108], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jl 0x40fc40
push 0x453f18
push 0x4559e0
lea ecx, [esp + 0x1c]
call fcn.00407440
push 0x45617c
push 0x456178
lea ecx, [esp + 0x1c]
call fcn.00407440
push edi
call fcn.00416ad3
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00401410
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 8
mov dword [esp + 0x108], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40fd43
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00437657
add esp, 0xf8
ret