Function at 0x40a6f0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42ea8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x24], ebx
mov eax, dword [0x43ab24]
mov edi, 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], eax
push 0x43c424
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call fcn.0041e66b
mov ecx, dword [esp + 0x3c]
push ebx
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x40]
push eax
call fcn.0041e912
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40a76e
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0041e2a3
mov dword [esp + 0x24], edi
jmp 0x40ab26
push esi
call fcn.0041df9c
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x48]
mov eax, dword [eax - 8]
push eax
call fcn.0041e912
push eax
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
jne 0x40a7d5
cmp ebp, ebx
je 0x40a7b8
push ebp
call fcn.0041dfc5
add esp, 4
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041e2a3
mov dword [esp + 0x24], 1
jmp 0x40ab26
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [0x43ab24]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, 0xfffffffc
mov byte [esp + 0x30], 3
jbe 0x40aaf3
mov eax, dword [esp + 0x18]
xor edx, edx
xor ecx, ecx
mov dx, word [eax + esi*4 + 2]
mov cx, word [eax + esi*4]
push edx
push ecx
lea edx, [esp + 0x18]
push str.StringFileInfo_04x_04xComments
push edx
call fcn.0041bb34
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x14], ebx
jbe 0x40a913
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push 0x43a7c8
push edx
call fcn.0041bb34
add esp, 0xc
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xInternalName
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xLegalCopyright
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xLegalTrademarks
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xOriginalFilename
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xPrivateBuild
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x18]
push str.StringFileInfo_04x_04xSpecialBuild
push eax
call fcn.0041bb34
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x14]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x40a80e
cmp ebp, ebx
je 0x40ab00
push ebp
call fcn.0041dfc5
add esp, 4
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0041e2a3
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 1
mov byte [esp + 0x30], 2
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0041e52e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.0041e52e
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8