Function at 0x4eb6d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576a11
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.00517390
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 0x4eb761
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb776
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eb778
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 0x4eba3e
push eax
call fcn.00510d3b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4eb8ff
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4eb7be
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb7d3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eb7d5
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, 0x5894e4
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4eb8b0
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov ecx, eax
mov dword [ebp - 0x424], ecx
test ecx, ecx
je 0x4eb8be
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 0x4eb8be
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 0x4eb8be
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 0x4eb864
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.0051e906
add esp, 0x10
cmp eax, 0x50
ja case.0x4ebb1f.1
movzx eax, byte [eax + 0x4ebbd4]
jmp dword [eax*4 + 0x4ebbc4]
push 0x8007000e
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ebb1f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4eb8be
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 0x4ebba6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ebba4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ebba6
push ebx
push dword [ebp - 0x434]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4eba33
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 0x4eb973
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 0x4eb98c
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.00517390
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 0x4eba33
cmp dword [ebp - 0x424], 0
je 0x4eba33
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4eba33
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4eba33
push dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00549301
add esp, 0xc
push 1
push ebx
call fcn.0051021a
add esp, 8
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4eba53
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eba68
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eba6a
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4ebb44
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4ebb6e
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 0x4ebb6e
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 0x4ebb6e
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 0x4ebafc
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.0051e906
add esp, 0x10
cmp eax, 0x50
ja case.0x4ebb1f.1
movzx eax, byte [eax + 0x4ebc38]
jmp dword [eax*4 + 0x4ebc28]
push 0x80070057
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ebb1f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4ebb6e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ebb50
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 0x4ebba6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ebba4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ebba6
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.00510209
mov esp, ebp
pop ebp
ret