Function at 0x458d10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8871
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xa0], esi
call fcn.0045a200
add esp, 4
test al, al
je 0x4590a7
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x4590a7
push eax
call fcn.005460f3
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 4], 0
push 0
push dword [ebp - 0xa0]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x98]
mov dword [ebp - 0x94], 0
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0
push eax
push 0x5d2854
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45909a
test dword [ebp - 0x98], 0xfffffffc
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x9c], ecx
je 0x45909a
mov byte [edi + 0x58], 0
mov bl, 1
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5d2888
lea eax, [ebp - 0x74]
mov byte [ebp - 0x8d], bl
push 0x32
push eax
call fcn.0045b020
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x458e9a
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0042e318
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], bl
push eax
call fcn.0044a750
mov ecx, dword [ebp - 0x7c]
add esp, 4
test ecx, ecx
je 0x458e8b
lea eax, [ebp - 0x8c]
cmp edi, eax
je 0x458e8b
cmp dword [ebp - 0x78], 8
push ecx
cmovae eax, dword [ebp - 0x8c]
mov ecx, edi
push eax
call fcn.0040491a
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004047c6
mov ecx, dword [ebp - 0x9c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5d28e0
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.0045b020
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x458f31
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0042e318
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
call fcn.0044a750
mov edx, dword [ebp - 0x7c]
add esp, 4
test edx, edx
je 0x458f22
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x8c]
cmp ecx, eax
je 0x458f22
cmp dword [ebp - 0x78], 8
push edx
cmovae eax, dword [ebp - 0x8c]
push eax
call fcn.0040491a
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004047c6
mov ecx, dword [ebp - 0x9c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x5d2930
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.0045b020
add esp, 0x14
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45909a
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
call fcn.0042e318
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
call fcn.0044a750
mov ecx, dword [ebp - 0x7c]
add esp, 4
test ecx, ecx
je 0x45908f
lea ebx, [edi + 0x30]
lea eax, [ebp - 0x8c]
cmp ebx, eax
je 0x458fc3
cmp dword [ebp - 0x78], 8
push ecx
cmovae eax, dword [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0040491a
cmp dword [edi + 0x40], 0
je 0x459089
mov eax, dword [ebx + 0x14]
mov ecx, ebx
mov dword [ebp - 0xa0], eax
cmp eax, 8
jb 0x458fdf
mov ecx, dword [ebx]
push 1
push 0x5c9d18
push 0
push dword [ebx + 0x10]
push ecx
call fcn.0040dbfe
add esp, 0x14
cmp eax, 0xffffffff
je 0x45903b
cmp dword [ebp - 0xa0], 8
lea ebx, [edi + 0x30]
mov ecx, ebx
jb 0x459009
mov ecx, dword [ebx]
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x4c]
push eax
lea eax, [edi + 0x48]
push eax
push 0x5d2818
push ecx
call fcn.0045b050
push 0
push 0x5d2838
push 0x5cda40
push ebx
call fcn.0040dccc
add esp, 0x28
jmp 0x459089
cmp dword [ebx + 0x14], 8
jb 0x459046
mov eax, dword [edi + 0x30]
jmp 0x459049
lea eax, [edi + 0x30]
push 1
push 0x5d2838
push 0
push dword [ebx + 0x10]
push eax
call fcn.0040dbfe
add esp, 0x14
cmp eax, 0xffffffff
je 0x459089
cmp dword [ebx + 0x14], 8
jb 0x45906b
mov ebx, dword [ebx]
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x4c]
push eax
lea eax, [edi + 0x48]
push eax
push 0x5d283c
push ebx
call fcn.0045b050
add esp, 0x18
mov bl, byte [ebp - 0x8d]
lea ecx, [ebp - 0x8c]
call fcn.004047c6
test esi, esi
je 0x4590a7
push esi
call fcn.005460ee
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret