Function at 0x45f2b6
Capabilities:
Get file version info

Disassembly:
mov eax, 0x6aef60
call fcn.00651da4
sub esp, 0x60
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
inc ebx
call fcn.0045d460
test al, al
je 0x45f4c9
cmp dword [edi + 0x14], 8
push 2
pop ebx
jb 0x45f2e6
mov eax, dword [edi]
jmp 0x45f2e8
mov eax, edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
xor edx, edx
or eax, edx
mov dword [ebp + 8], ecx
je 0x45f4c9
push esi
push 3
pop ebx
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0045e3c2
mov esi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x45f4c8
cmp dword [edi + 0x14], 8
jb 0x45f327
mov edi, dword [edi]
push esi
push dword [ebp + 8]
push dword [ebp - 0x2c]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45f4c1
push 2
pop ebx
lea eax, [ebp - 0x18]
xor edi, edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x1c], edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x18]
shr ecx, 2
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x45f4c1
test ecx, ecx
je 0x45f4c1
mov dword [ebp - 0x24], 0x18
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0x30], edx
cdq
idiv dword [ebp - 0x24]
test eax, eax
je 0x45f4b4
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp + 8], eax
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x45f3aa
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
push eax
movzx eax, word [ecx + edi*4 + 2]
push eax
movzx eax, word [ecx + edi*4]
push eax
lea eax, [ebp - 0x6c]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00462014
add esp, 0x14
xor ecx, ecx
mov dword [ebp - 0x40], 7
xor eax, eax
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x54], ax
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ecx
jae 0x45f3f2
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45f458
cmp dword [ebp - 0x10], 0
je 0x45f458
push dword [ebp - 0x10]
lea ecx, [ebp - 0x54]
push dword [ebp - 0x20]
call fcn.004286de
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x45f454
cmp dword [ebp - 0x40], 8
mov edx, dword [ebp - 0x54]
mov ecx, edx
jae 0x45f42e
lea ecx, [ebp - 0x54]
xor ebx, ebx
cmp word [ecx + eax*2 - 2], bx
jne 0x45f454
lea ecx, [eax - 1]
cmp eax, ecx
jb 0x45f4dd
cmp dword [ebp - 0x40], 8
mov dword [ebp - 0x44], ecx
jae 0x45f44e
lea edx, [ebp - 0x54]
xor eax, eax
mov word [edx + ecx*2], ax
xor eax, eax
mov ebx, eax
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045e398
xor eax, eax
lea ecx, [ebp - 0x54]
push eax
push 1
call fcn.004284eb
xor eax, eax
lea ecx, [ebp - 0x6c]
push eax
push 1
mov byte [ebp - 4], al
call fcn.004284eb
push 0x18
pop eax
add dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
inc dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
jb 0x45f3a0
mov ecx, dword [ebp - 0x34]
test ebx, ebx
je 0x45f4c1
inc edi
cmp edi, ecx
jl 0x45f37a
push esi
call fcn.00651dd2
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push str.invalid_string_position
call fcn.0063e995
int3