Function at 0x40b2fc
Capabilities:
Get file version info

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, ecx
push edi
test ebp, ebp
mov dword [esp + 0x18], esi
jne 0x40b314
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 8
mov ebx, dword [esp + 0x8c]
mov ecx, 0x7a
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40b352
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 8
push eax
call fcn.0049c3d1
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b37a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [ecx + 8], eax
xor eax, eax
pop ebx
add esp, 0x74
ret 8
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push eax
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40b3c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push esi
mov dword [ecx + 8], eax
call fcn.0049c3fa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x4dabc0
push esi
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40b3fa
push esi
call fcn.0049c3fa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
mov dword [ebx + 4], edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40b437
push esi
call fcn.0049c3fa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
mov eax, dword [esp + 0x10]
mov ecx, 0x18
lea edi, [esp + 0x21]
mov bp, word [eax]
mov dx, word [eax + 2]
xor eax, eax
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov ebx, edx
and ebp, 0xffff
and ebx, 0xffff
lea edx, [esp + 0x20]
stosw word es:[edi], ax
push ebx
push ebp
push str.StringFileInfo_04X_04XFileDescription
push edx
stosb byte es:[edi], al
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b4ac
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 8
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
push ebp
lea edx, [esp + 0x28]
push str.StringFileInfo_04X_04XCompanyName
push edx
rep stosd dword es:[edi], eax
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b503
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 0x148
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
push ebp
lea edx, [esp + 0x28]
push str.StringFileInfo_04X_04XInternalName
push edx
rep stosd dword es:[edi], eax
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b55a
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 0xa8
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
push ebp
lea edx, [esp + 0x28]
push str.StringFileInfo_04X_04XOriginalFilename
push edx
rep stosd dword es:[edi], eax
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b5ae
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 0x58
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
push ebp
lea edx, [esp + 0x28]
push str.StringFileInfo_04X_04XProductName
push edx
rep stosd dword es:[edi], eax
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b605
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 0xf8
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push ebx
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
push ebp
lea edx, [esp + 0x28]
push str.StringFileInfo_04X_04XLegalCopyright
push edx
rep stosd dword es:[edi], eax
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b65c
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
push 0x4f
add ecx, 0x198
push eax
push ecx
call fcn.0041fff0
add esp, 0xc
push esi
call fcn.0049c3fa
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8