Function at 0x42cd50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4529eb
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 + 0x13c]
push edi
push ebp
mov dword [esp + 0x134], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jbe 0x42ce8e
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 0x42ce85
mov eax, dword [esp + 0x138]
xor ecx, ecx
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov cx, word [eax + 2]
xor edx, edx
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
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 0x42ce2f
xor ebp, ebp
jmp 0x42ce38
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 1
jg 0x42ce47
cmp ebp, dword [eax - 4]
jle 0x42ce62
lea ecx, [esp + 0x10]
call fcn.00425890
push ebp
lea ecx, [esp + 0x14]
call fcn.00425830
cmp eax, edi
je 0x42ce85
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 0x42ceaf
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42cf0c
mov edx, dword [0x45c050]
cmp eax, edi
mov dword [ebp], edx
mov esi, eax
jne 0x42cec2
xor ebx, ebx
jmp 0x42cecb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
jg 0x42ced9
cmp ebx, dword [eax - 4]
jle 0x42ceec
mov ecx, ebp
call fcn.00425890
push ebx
mov ecx, ebp
call fcn.00425830
cmp eax, edi
je 0x42cf0c
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 0x42cf3b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42cf3b
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