Function at 0x40ee2a
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0xa00
lea ebp, [esp - 4]
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0xa00], eax
push 0x8c
mov eax, 0x45a2f7
call fcn.0043b0d3
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 0x40ee83
xor eax, eax
jmp 0x40f06c
push eax
mov dword [ebp - 0x20], esi
call fcn.0041db22
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 0x40f060
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x45e7b8
push dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f060
push 0x1fe
lea eax, [ebp + 0x802]
push esi
push eax
mov word [ebp + 0x800], si
call fcn.0043b390
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.0043eab1
mov ecx, dword [ebp - 0x14]
add esp, 0x28
lea eax, [ebp + 0x800]
push eax
call fcn.0040d776
push 0xffffffffffffffff
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040d020
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 0x40f059
cmp dword [ebp - 0x10], 4
jb 0x40f059
push 0x7fe
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0043b390
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x45f108
push ecx
push eax
push 0x45f0d0
lea eax, [ebp]
push 0x3ff
push eax
call fcn.0043eab1
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 0x40f059
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040d776
push 0x45e8e0
lea ecx, [ebp - 0x98]
call fcn.0040d793
push 0x45ecb0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], esi
call fcn.0040d793
lea eax, [ebp - 0x98]
push eax
push edi
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0040e4b3
pop ecx
pop ecx
push esi
push 1
mov ecx, ebx
call fcn.00407b38
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x98]
call fcn.00407b38
push 0x45e888
lea ecx, [ebp - 0x44]
call fcn.0040d793
push 0x45f0cc
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 2
call fcn.0040d793
lea eax, [ebp - 0x44]
push eax
push edi
lea ebx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0040e4b3
pop ecx
pop ecx
push esi
push 1
mov ecx, ebx
call fcn.00407b38
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00407b38
mov dword [ebp - 0x20], 1
push dword [ebp - 0x18]
call fcn.0041db1d
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.0043b0c4
add ebp, 0xa04
leave
ret