Function at 0x4ea4d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575521
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5b1074]
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, edx
mov dword [ebp - 0x424], ebx
mov edi, ecx
mov dword [ebp - 0x430], edi
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], 0
call fcn.00516180
add esp, 0xc
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x434], eax
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4ea561
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ea576
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ea578
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x4ea83e
push eax
call fcn.0050fb2b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ea6ff
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4ea5be
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ea5d3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ea5d5
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, 0x5884e4
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4ea6b0
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov ecx, eax
mov dword [ebp - 0x424], ecx
test ecx, ecx
je 0x4ea6be
mov eax, ebx
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ea6be
mov ecx, dword [ebp - 0x424]
mov edx, eax
push ebx
call fcn.00408f9e
mov edx, eax
add esp, 4
mov dword [ebp - 0x424], edx
test edx, edx
je 0x4ea6be
mov eax, dword [edi]
mov ecx, 1
movzx ebx, word [edx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or eax, ecx
jge 0x4ea664
push ebx
mov ecx, edi
call fcn.00409225
mov edx, dword [ebp - 0x424]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push ebx
push dword [edi]
call fcn.0051d6f6
add esp, 0x10
cmp eax, 0x50
ja case.0x4ea91f.1
movzx eax, byte [eax + 0x4ea9d4]
jmp dword [eax*4 + 0x4ea9c4]
push 0x8007000e
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ea91f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4ea6be
push 0
push 0x5884e4
mov ecx, edi
call fcn.00409323
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ea9a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ea9a4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ea9a6
push ebx
push dword [ebp - 0x434]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4ea833
lea eax, [ebp - 0x434]
mov dword [ebp - 0x428], 0
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 0
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ea773
mov ecx, dword [ebp - 0x428]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x430]
push str._04x_04x
push eax
call fcn.00418437
add esp, 0x10
jmp 0x4ea78c
push str.041904b0
lea eax, [ebp - 0x430]
push 0x5883bc
push eax
call fcn.00418437
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00516180
push dword [ebp - 0x42c]
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push esi
push str.StringFileInfo_s_s
push 0x104
push eax
call fcn.00419196
add esp, 0x20
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ea833
cmp dword [ebp - 0x424], 0
je 0x4ea833
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4ea833
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4ea833
push dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005480f1
add esp, 0xc
push 1
push ebx
call fcn.0050f00a
add esp, 8
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4ea853
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ea868
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ea86a
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4ea944
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4ea96e
mov ecx, ebx
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ea96e
mov ecx, dword [ebp - 0x42c]
mov edx, eax
push ebx
call fcn.00408f9e
mov edx, eax
add esp, 4
mov dword [ebp - 0x42c], edx
test edx, edx
je 0x4ea96e
mov eax, dword [edi]
mov ecx, 1
movzx ebx, word [edx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or eax, ecx
jge 0x4ea8fc
push ebx
mov ecx, edi
call fcn.00409225
mov edx, dword [ebp - 0x42c]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push ebx
push dword [edi]
call fcn.0051d6f6
add esp, 0x10
cmp eax, 0x50
ja case.0x4ea91f.1
movzx eax, byte [eax + 0x4eaa38]
jmp dword [eax*4 + 0x4eaa28]
push 0x80070057
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ea91f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4ea96e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ea950
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00409323
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ea9a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ea9a4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ea9a6
call edx
mov eax, edi
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.0050eff9
mov esp, ebp
pop ebp
ret