Function at 0x40e110
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0xa00
lea ebp, [esp - 4]
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0xa00], eax
push 0x8c
mov eax, 0x459563
call fcn.0043a3cf
mov eax, dword [ebp + 0xa10]
mov ebx, dword [ebp + 0xa0c]
mov edi, dword [ebp + 0xa14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push ebx
mov dword [ebp - 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x40e169
xor eax, eax
jmp 0x40e352
push eax
mov dword [ebp - 0x20], esi
call fcn.0041cdf2
pop ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e346
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x45d780
push dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e346
push 0x1fe
lea eax, [ebp + 0x802]
push esi
push eax
mov word [ebp + 0x800], si
call fcn.0043a680
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
lea eax, [ebp + 0x800]
push 0xff
push eax
call fcn.0043ddb1
mov ecx, dword [ebp - 0x14]
add esp, 0x28
lea eax, [ebp + 0x800]
push eax
call fcn.0040ca96
push 0xffffffffffffffff
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040c340
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e33f
cmp dword [ebp - 0x10], 4
jb 0x40e33f
push 0x7fe
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0043a680
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x45e0a8
push ecx
push eax
push 0x45e070
lea eax, [ebp]
push 0x3ff
push eax
call fcn.0043ddb1
add esp, 0x24
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e33f
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040ca96
push 0x45d8a8
lea ecx, [ebp - 0x98]
call fcn.0040cab3
push 0x45dc50
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], esi
call fcn.0040cab3
lea eax, [ebp - 0x98]
push eax
push edi
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0040d799
pop ecx
pop ecx
push esi
push 1
mov ecx, ebx
call fcn.00407af6
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x98]
call fcn.00407af6
push 0x45d850
lea ecx, [ebp - 0x44]
call fcn.0040cab3
push 0x45e06c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 2
call fcn.0040cab3
lea eax, [ebp - 0x44]
push eax
push edi
lea ebx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040d799
pop ecx
pop ecx
push esi
push 1
mov ecx, ebx
call fcn.00407af6
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00407af6
mov dword [ebp - 0x20], 1
push dword [ebp - 0x18]
call fcn.0041cded
mov eax, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa00]
xor ecx, ebp
call fcn.0043a3c0
add ebp, 0xa04
leave
ret