Function at 0x457af0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ffd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [edi]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x457e8c
push esi
call fcn.00669a2f
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x457e8c
push eax
push esi
push dword [ebp - 0x20]
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x457e80
cmp dword [0x74bf04], ebx
je 0x457bde
push str.ntdll.dll
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x457bd8
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x457bae
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
movzx eax, word [ebp + 8]
lea edi, [ebx + 1]
mov dword [ebp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x457bd8
mov eax, dword [ebp - 0x18]
cmp eax, 6
jne 0x457bc9
cmp dword [ebp - 0x10], 4
je 0x457bce
jmp 0x457bd8
cmp eax, 0xa
jb 0x457bd8
mov dword [0x758f84], 1
mov dword [0x74bf04], ebx
cmp dword [0x758f84], ebx
je 0x457cc0
call fcn.0042cab0
test eax, eax
jne 0x457cc0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x457cc0
xor edi, edi
test dword [ebp - 0x18], 0xfffffffc
jbe 0x457cc0
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x457eaf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.004383f0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x457d1f
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x457cb1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
inc edi
shr eax, 2
cmp edi, eax
jb 0x457c28
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x6d17fc
push esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x457ea0
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x6d17e4
push ebx
call fcn.004383f0
add esp, 0x18
mov ebx, 1
jmp 0x457e83
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x28]
call fcn.00441d80
mov edx, dword [ebx]
xor cl, cl
xor eax, eax
mov dword [ebp - 0x1c], 1
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x457dba
mov esi, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x2c], eax
cmp word [eax + edx], 0x2c
jne 0x457d8f
test cl, cl
jne 0x457d83
mov byte [ebp + 0xb], 1
test edi, edi
js 0x457ea5
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x457d7d
push edi
mov ecx, ebx
call fcn.00441ae0
mov edx, dword [ebx]
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp + 0xb]
mov esi, 0x2e
mov word [eax + edx], si
mov esi, dword [ebp - 0x10]
add eax, 2
sar eax, 1
cmp eax, edi
jl 0x457d46
test cl, cl
je 0x457dba
test edi, edi
js 0x457ea5
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x457ea5
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x34], edi
test edi, edi
js 0x457ea5
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x457de3
push edi
mov ecx, ebx
call fcn.00441ae0
mov eax, dword [ebx]
lea ecx, [eax + edi*2]
mov edx, eax
mov dword [ebp + 8], ecx
cmp eax, ecx
jae 0x457e2e
mov ebx, ecx
cmp word [eax], 0x20
lea ecx, [eax + 2]
mov dword [ebp - 0x2c], ecx
je 0x457e22
lea ebx, [edx + 2]
xor edi, edi
cmp edx, ebx
je 0x457e1f
cmp edi, 1
jae 0x457e1c
mov cx, word [eax]
inc edi
mov word [edx], cx
add eax, 2
add edx, 2
cmp edx, ebx
jne 0x457e06
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov eax, ecx
cmp ecx, ebx
jb 0x457df1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x34]
sub eax, edx
xor ecx, ecx
sar eax, 1
sub edi, eax
mov word [edx], cx
js 0x457ea5
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x457ea5
mov dword [eax - 0xc], edi
add esi, 0xfffffff0
mov eax, dword [ebx]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
mov word [eax + edi*2], cx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x457e71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x457cc3
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
push esi
call fcn.00669a38
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
jmp 0x457e83
push 0x80070057
call fcn.00422220
push 0x80004005
call fcn.00422220
int3