Function at 0x4da5b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eefff
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4da62e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4da619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00455856
mov ecx, dword [ebp + 8]
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ecx
mov dword [ebp - 0x18], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x51c590
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4da8a2
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4da680
push 0x80004005
call fcn.004016a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
movzx edx, word [eax + 0xa]
mov ecx, dword [eax + 8]
movzx esi, word [eax + 0xe]
mov ebx, eax
mov eax, dword [eax + 0xc]
and eax, 0xffff
push eax
push esi
and ecx, 0xffff
push ecx
push edx
lea ecx, [ebp - 0x10]
push 0x51c594
push ecx
call fcn.00402950
push 0x28
call fcn.00415ec5
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x4da71a
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov edi, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ebp - 0x2c], edi
call fcn.00402370
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.File_Version
call fcn.00401830
mov byte [ebp - 4], 7
push esi
mov byte [ebp - 4], 4
call fcn.0047ff90
mov dword [ebp - 0x14], eax
jmp 0x4da721
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
add esi, 4
mov dword [ebp - 0x20], eax
test eax, eax
jns 0x4da73a
call fcn.0041d34a
lea edi, [eax + 1]
call fcn.004047b0
mov edx, dword [esi + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [edx + ecx*4], eax
movzx edx, word [ebx + 0x16]
movzx ecx, word [ebx + 0x12]
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
and ebx, 0xffff
push ebx
push edx
and eax, 0xffff
push eax
push ecx
lea edx, [ebp - 0x10]
push str._d._d._d._d
push edx
call fcn.00402950
push 0x28
call fcn.00415ec5
mov edi, eax
add esp, 0x1c
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x4da7d0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov ebx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 0x14], ebx
call fcn.00402370
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Product_Version
call fcn.00401830
mov byte [ebp - 4], 0xb
push edi
mov byte [ebp - 4], 8
call fcn.0047ff90
mov dword [ebp - 0x14], eax
jmp 0x4da7d7
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
mov ebx, dword [esi + 8]
test ebx, ebx
jns 0x4da7e7
call fcn.0041d34a
lea edi, [ebx + 1]
call fcn.004047b0
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + ebx*4], ecx
call fcn.0041d9cc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4da812
push 0x80004005
call fcn.004016a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xd
mov edx, dword [0x554df8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [0x554dfc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x554e00]
mov dword [eax + 4], ecx
mov ecx, dword [0x554e04]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.004da140
add esp, 0x14
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4da87c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da89f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
push edi
call fcn.004559d5
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4da8d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret