Function at 0x407f50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424140
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x431080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x407f84
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x407fc2
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], eax
cmp eax, 0x7fffffff
ja 0x408238
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401840
cmp dword [esi + 0x14], 7
jbe 0x407ff9
mov esi, dword [esi]
mov edi, dword [ebp - 0x30]
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40806d
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
je 0x4081d9
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x408050
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408233
push ecx
push edi
call fcn.0040c8e4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0
push eax
push str.StringFileInfo040904B0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4080f0
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
je 0x4081d9
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4080d3
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408233
push ecx
push edi
call fcn.0040c8e4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4081ec
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4081ec
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp eax, 0x7ffffffe
ja 0x40823d
mov dword [esi + 0x14], 7
cmp eax, 7
ja 0x408158
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0040dec0
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x4081a9
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x408169
mov eax, 0x7ffffffe
jmp 0x408173
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00401310
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea esi, [eax + eax]
push esi
push dword [ebp - 0x1c]
push edi
call fcn.0040dec0
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x4081d6
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4081cc
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408233
push ecx
push edi
call fcn.0040c8e4
add esp, 8
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
je 0x4081d9
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4080d3
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4080d3
call fcn.0041132f
call fcn.004054b0
call fcn.004054a0
int3