Function at 0x46ad40
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be86b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
xor eax, eax
mov dword [ebp - 0x124], 7
movups xmmword [ebp - 0x138], xmm0
mov word [ebp - 0x138], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x10], eax
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x46adbc
mov eax, dword [edi]
xor ecx, ecx
push 0xb
mov word [eax], cx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
lea ecx, [ebp - 0x164]
push 0x609af8
movups xmmword [ebp - 0x164], xmm0
call fcn.00429f00
mov byte [ebp - 4], 1
cmp dword [ebp - 0x154], 0
mov byte [ebp - 0x141], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0
je 0x46af76
cmp dword [esi + 0x10], 0
je 0x46af76
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x46ae3a
mov eax, dword [esi]
lea ecx, [ebp - 0x120]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x46af76
push 0x5ca618
push eax
call fcn.00483c70
add esp, 8
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x46af76
cmp dword [esi + 0x14], 7
jbe 0x46ae7a
mov esi, dword [esi]
push eax
push dword [ebp - 0x148]
push dword [ebp - 0x120]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp - 0x14c]
test eax, eax
je 0x46af6d
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x13c]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46af6d
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x46af6d
cmp dword [ebp - 0x11c], 0
je 0x46af6d
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp - 0x150], 7
lea eax, [ebp - 0x164]
cmova eax, dword [ebp - 0x164]
push eax
push ecx
push str.StringFileInfo_08lx_s
lea eax, [ebp - 0x118]
push 0x80
push eax
call fcn.00466df0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, 1
jne 0x46af6d
mov edx, dword [ebp - 0x140]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x148], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46af46
sub ecx, dword [ebp - 0x148]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x138]
call fcn.0041f7e0
mov byte [ebp - 0x141], 1
push esi
call fcn.00483a6b
add esp, 4
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0
call fcn.004017e0
cmp byte [ebp - 0x141], 0
je 0x46afda
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x164]
call fcn.0046b010
mov esi, eax
cmp edi, esi
je 0x46afcf
mov ecx, edi
call fcn.004017e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x164]
call fcn.004017e0
lea ecx, [ebp - 0x138]
call fcn.004017e0
mov al, byte [ebp - 0x141]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret