Function at 0x42ed10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b677b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x42ed69
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
lea ecx, [ebp - 0x22c]
push ecx
push ebx
mov dword [ebp - 4], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x42ef70
cmp esi, 0x7d00
jae 0x42ef70
push esi
call fcn.0059a064
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x42ede0
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42ef93
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x42ef93
mov ecx, dword [ebp - 0x22c]
push eax
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [ebp - 0x21c]
test eax, eax
jne 0x42ee2e
push edx
call fcn.0059a02a
lea eax, [edi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42ef93
lea ecx, [ebp - 0x220]
push ecx
push 0x65cc90
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
xor ebx, ebx
test dword [ebp - 0x220], 0xfffffffc
jbe 0x42ef36
mov eax, dword [0x65cc90]
movzx ecx, word [eax + ebx*4 + 2]
movzx edx, word [eax + ebx*4]
push ecx
push edx
lea eax, [ebp - 0x218]
push str.StringFileInfo_04x_04xCompanyName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x218]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42ef18
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x42ef18
mov esi, dword [ebp - 0x234]
cmp esi, 0x100
jae 0x42ef18
test esi, esi
je 0x42ef18
push esi
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.0059b910
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp + esi - 0x114], 0
call fcn.00402ba0
lea ecx, [ebp - 0x224]
call fcn.004027d0
mov edi, dword [ebp - 0x224]
cmp dword [edi - 0xc], 0
jl 0x42ef18
push str.MACROVISION
push edi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x42ef18
sub eax, edi
cmp eax, 0xffffffff
jne 0x42ef2c
mov ecx, dword [ebp - 0x220]
inc ebx
shr ecx, 2
cmp ebx, ecx
jb 0x42ee57
jmp 0x42ef36
mov dword [ebp - 0x228], 1
mov edx, dword [ebp - 0x21c]
push edx
call fcn.0059a02a
lea eax, [edi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
jmp 0x42ef95
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef93
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 4