Function at 0x40ce50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0680
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
cmp dword [edi + 0x14], 8
jb 0x40ce93
mov eax, dword [edi]
push 0xffffffffffffffff
push 3
lea ecx, [ebp - 0x14c]
push ecx
push eax
call fcn.004744fc
mov ecx, eax
test ecx, ecx
jne 0x40cf05
mov edx, dword [ebp - 0x13c]
mov eax, 0x1ff
test dl, 1
mov dword [ebp - 0x15c], 0x16d
cmovne eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
test edx, 0x400
je 0x40cef7
mov eax, dword [ebp - 0x138]
cmp eax, 0xa000000c
jne 0x40cee9
lea eax, [ecx + 4]
jmp 0x40cf2e
cmp eax, 0xa0000003
jne 0x40cef7
mov eax, 0xa
jmp 0x40cf2e
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x40cf2e
lea eax, [ecx - 2]
mov dword [ebp - 0x160], 0xffff
cmp eax, 0x79
ja case.0x40cf1e.4
movzx eax, byte [eax + 0x40d0fc]
jmp dword [eax*4 + 0x40d0f4]
mov eax, 1
jmp 0x40cf2e
xor eax, eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], 0x4c1008
test eax, eax
jne 0x40cf4c
test ecx, ecx
jne 0x40d0e0
jmp 0x40cf51
cmp eax, 1
jne 0x40cf7b
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x40d0c3
push edi
lea ecx, [ebp - 0x12c]
call fcn.00409db0
cmp dword [ebp - 0x118], 8
lea ecx, [ebp - 0x168]
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x12c]
push ecx
push eax
mov dword [ebp - 0x15c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40cfef
push eax
call fcn.00475465
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x154]
push dword [ebp - 0x168]
push dword [ebp - 0x15c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40d019
push edi
call fcn.0047546e
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x40d0b8
lea eax, [ebp - 0x154]
mov dword [ebp - 0x158], 0
push eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x154], 0x34
push eax
push 0x4a39a4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40cfe6
mov edx, dword [ebp - 0x158]
mov ecx, dword [edx + 0xc]
movzx eax, cx
push eax
movzx eax, word [edx + 8]
shr ecx, 0x10
push ecx
push eax
movzx eax, word [edx + 0x12]
push eax
lea eax, [ebp - 0x114]
push str._lu._lu._lu._lu
push eax
call fcn.00409100
push edi
call fcn.0047546e
xorps xmm0, xmm0
lea ecx, [ebp - 0x114]
movups xmmword [esi], xmm0
add esp, 0x1c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d0a0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, esi
call fcn.004016e0
lea ecx, [ebp - 0x12c]
call fcn.0040ae10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x160]
push eax
push str.exists
call fcn.00411950
nop
and eax, 0x2c0040cf
iretd