Function at 0x495d00
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x51457b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x549950]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1cc]
mov dword [esp + 0x1c], 0
push 0x522764
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c8], 1
call fcn.00402480
mov byte [esp + 0x1c4], 2
mov eax, dword [esp + 0x1d0]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x495db6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x495eba
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c015e
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1d0]
push esi
push edi
xor edi, edi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x30], edi
call sub.VERSION.dll_VerQueryValueW
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x20]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.00402a50
mov ecx, dword [esp + 0x30]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
mov eax, dword [eax]
push edx
push ecx
push eax
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495e51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [esp + 0x14], edi
je 0x495e82
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402560
push esi
call fcn.004c0153
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1cc], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495ec6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c4], 0
mov eax, dword [esp + 0x1d0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495ef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c4], 0xffffffff
mov eax, dword [esp + 0x1d4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004df2ac
add esp, 0x1b8
ret