Function at 0x45489a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x6aa869
call fcn.00664608
sub esp, 0x68
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
inc ebx
call fcn.004526fa
test al, al
je 0x454b05
cmp dword [edi + 0x14], 8
mov eax, edi
push 2
pop ebx
jb 0x4548ca
mov eax, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
xor edx, edx
or eax, edx
mov dword [ebp + 8], ecx
je 0x454b05
push esi
push 3
pop ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004535f8
xor ecx, ecx
mov esi, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x1c], ecx
je 0x45490b
push dword [ebp - 0x1c]
call fcn.0066464a
pop ecx
test esi, esi
je 0x454b04
cmp dword [edi + 0x14], 8
jb 0x45491b
mov edi, dword [edi]
push esi
push dword [ebp + 8]
push dword [ebp - 0x38]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x454af9
push 2
xor eax, eax
pop ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [ebp - 0x20]
shr edi, 2
test eax, eax
je 0x454af9
xor eax, eax
mov dword [ebp - 0x18], eax
test edi, edi
je 0x454af9
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x34]
test eax, eax
je 0x454ae3
xor edx, edx
mov eax, edx
mov dword [ebp + 8], eax
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x45499a
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push eax
movzx eax, word [ecx + edx*4 + 2]
push eax
movzx eax, word [ecx + edx*4]
push eax
lea eax, [ebp - 0x74]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004577f2
add esp, 0x14
xor ecx, ecx
mov dword [ebp - 0x48], 7
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ecx
jb 0x4549e8
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x454a4f
cmp dword [ebp - 0x10], 0
je 0x454a4f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x28]
call fcn.00427bc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x454a4b
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
jb 0x454a22
mov ecx, dword [ebp - 0x5c]
xor edx, edx
cmp word [ecx + eax*2 - 2], dx
jne 0x454a4b
lea ecx, [eax - 1]
cmp eax, ecx
jb 0x454b17
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], ecx
jb 0x454a45
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov word [eax + ecx*2], dx
xor eax, eax
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004534fb
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x454aa3
mov ecx, dword [ebp - 0x5c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x454a9a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004279ae
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x74]
mov word [ebp - 0x5c], ax
call fcn.00427afc
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 - 0x34]
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
jb 0x454990
test ebx, ebx
je 0x454af9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, edi
jge 0x454af9
xor eax, eax
jmp 0x454970
test esi, esi
je 0x454b04
push esi
call fcn.0066464a
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
call fcn.0040f865
int3