Function at 0x42cf60
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x452a0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x45c050]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x138]
push edi
push ebp
mov dword [esp + 0x134], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jbe 0x42d096
push esi
call fcn.0044560d
add esp, 4
mov ebx, eax
push ebx
push esi
push edi
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x2c], edi
call sub.VERSION.dll_VerQueryValueA
test dword [esp + 0x1c], 0xfffffffc
jbe 0x42d08d
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
jne 0x42d037
xor ebp, ebp
jmp 0x42d040
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
jg 0x42d04f
cmp ebp, dword [eax - 4]
jle 0x42d06a
lea ecx, [esp + 0x10]
call fcn.00425890
push ebp
lea ecx, [esp + 0x14]
call fcn.00425830
cmp eax, edi
je 0x42d08d
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [eax - 8], ebp
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebp], 0
push ebx
call fcn.004447ea
add esp, 4
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x134]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, edi
jl 0x42d0b7
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42d114
mov edx, dword [0x45c050]
cmp eax, edi
mov dword [ebp], edx
mov esi, eax
jne 0x42d0ca
xor ebx, ebx
jmp 0x42d0d3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
jg 0x42d0e1
cmp ebx, dword [eax - 4]
jle 0x42d0f4
mov ecx, ebp
call fcn.00425890
push ebx
mov ecx, ebp
call fcn.00425830
cmp eax, edi
je 0x42d114
mov edi, dword [ebp]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov byte [edx + ebx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x45c054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42d143
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42d143
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004447ea
add esp, 4
mov ecx, dword [esp + 0x124]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret