Function at 0x4eb6e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576a21
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.005173a0
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 0x4eb771
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb786
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eb788
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 0x4eba4e
push eax
call fcn.00510d4b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4eb90f
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4eb7ce
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eb7e3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eb7e5
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, 0x5894e4
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4eb8c0
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov ecx, eax
mov dword [ebp - 0x424], ecx
test ecx, ecx
je 0x4eb8ce
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 0x4eb8ce
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 0x4eb8ce
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 0x4eb874
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.0051e916
add esp, 0x10
cmp eax, 0x50
ja case.0x4ebb2f.1
movzx eax, byte [eax + 0x4ebbe4]
jmp dword [eax*4 + 0x4ebbd4]
push 0x8007000e
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ebb2f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4eb8ce
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 0x4ebbb6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ebbb4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ebbb6
push ebx
push dword [ebp - 0x434]
push 0
push dword [ebp - 0x424]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4eba43
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 0x4eb983
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 0x4eb99c
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.005173a0
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 0x4eba43
cmp dword [ebp - 0x424], 0
je 0x4eba43
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4eba43
push 2
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4eba43
push dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00549311
add esp, 0xc
push 1
push ebx
call fcn.0051022a
add esp, 8
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4eba63
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4eba78
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4eba7a
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4ebb54
movzx ebx, ax
mov ecx, ebx
call fcn.00408f5a
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x4ebb7e
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 0x4ebb7e
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 0x4ebb7e
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 0x4ebb0c
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.0051e916
add esp, 0x10
cmp eax, 0x50
ja case.0x4ebb2f.1
movzx eax, byte [eax + 0x4ebc48]
jmp dword [eax*4 + 0x4ebc38]
push 0x80070057
call fcn.0040b4a2
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg case.0x4ebb2f.20
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x4ebb7e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ebb60
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 0x4ebbb6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ebbb4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ebbb6
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.00510219
mov esp, ebp
pop ebp
ret