Function at 0x42d160
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x452a2b
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 0x42d296
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 0x42d28d
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_04xProductVersion
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 0x42d237
xor ebp, ebp
jmp 0x42d240
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
jg 0x42d24f
cmp ebp, dword [eax - 4]
jle 0x42d26a
lea ecx, [esp + 0x10]
call fcn.00425890
push ebp
lea ecx, [esp + 0x14]
call fcn.00425830
cmp eax, edi
je 0x42d28d
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 0x42d2b7
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42d314
mov edx, dword [0x45c050]
cmp eax, edi
mov dword [ebp], edx
mov esi, eax
jne 0x42d2ca
xor ebx, ebx
jmp 0x42d2d3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
jg 0x42d2e1
cmp ebx, dword [eax - 4]
jle 0x42d2f4
mov ecx, ebp
call fcn.00425890
push ebx
mov ecx, ebp
call fcn.00425830
cmp eax, edi
je 0x42d314
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 0x42d343
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42d343
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