Function at 0x4eac80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e81
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5b3074]
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.00516940
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 0x4ead11
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ead26
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ead28
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 0x4eafee
push eax
call fcn.005102eb
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4eaeaf
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4ead6e
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ead83
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ead85
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, 0x5894e4
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4eae60
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov ecx, eax
mov dword [ebp - 0x424], ecx
test ecx, ecx
je 0x4eae6e
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 0x4eae6e
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 0x4eae6e
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 0x4eae14
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.0051deb6
add esp, 0x10
cmp eax, 0x50
ja case.0x4eb0cf.1
movzx eax, byte [eax + 0x4eb184]
jmp dword [eax*4 + 0x4eb174]
push 0x8007000e
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4eb0cf.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4eae6e
push 0
push 0x5894e4
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 0x4eb156
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb154
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4eb156
push ebx
push dword [ebp - 0x434]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4eafe3
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 0x4eaf23
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 0x4eaf3c
push str.041904b0
lea eax, [ebp - 0x430]
push 0x5893bc
push eax
call fcn.00418437
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00516940
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 0x4eafe3
cmp dword [ebp - 0x424], 0
je 0x4eafe3
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4eafe3
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4eafe3
push dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005488b1
add esp, 0xc
push 1
push ebx
call fcn.0050f7ca
add esp, 8
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4eb003
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb018
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eb01a
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4eb0f4
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4eb11e
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 0x4eb11e
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 0x4eb11e
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 0x4eb0ac
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.0051deb6
add esp, 0x10
cmp eax, 0x50
ja case.0x4eb0cf.1
movzx eax, byte [eax + 0x4eb1e8]
jmp dword [eax*4 + 0x4eb1d8]
push 0x80070057
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4eb0cf.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4eb11e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb100
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 0x4eb156
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb154
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4eb156
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.0050f7b9
mov esp, ebp
pop ebp
ret