Function at 0x4257d7
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xd0], eax
mov edi, edx
mov dword [ebp - 0xe8], edi
test esi, esi
je 0x425a73
test edi, edi
je 0x425a73
test eax, eax
je 0x425a73
and dword [ebp - 0xdc], 0
lea eax, [ebp - 0xdc]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4259f6
mov ecx, esi
call fcn.00425077
test eax, eax
jne 0x42584e
mov eax, 0x80070002
jmp 0x425a78
xor eax, eax
xor ecx, ecx
push eax
push 0x80
push 3
push eax
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x425a73
lea eax, [ebp - 0xec]
mov esi, 0x80004005
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4259e8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4259e8
push 0xac
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.msvcrt.dll_memset
movzx eax, word [ebp - 0x18]
add esp, 0xc
movzx ecx, word [ebp - 0x16]
mov esi, dword [ebp - 0xd0]
and dword [ebp - 0xd0], 0
mov dword [edi], eax
movzx eax, word [ebp - 0x12]
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0xcc]
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x4259e2
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
jle 0x425905
movzx eax, cx
jmp 0x42590c
mov eax, ecx
neg eax
movzx eax, ax
movzx eax, ax
cdq
mov dword [ebp - 0xd4], 0x3c
idiv dword [ebp - 0xd4]
cmp ecx, 1
mov cx, word [ebp - 0x12]
movzx edx, ax
mov ax, word [ebp - 0x10]
jge 0x425935
add ax, dx
jmp 0x425956
cmp ax, dx
jae 0x425953
mov dword [ebp - 0xd4], 0xffff
add cx, word [ebp - 0xd4]
add ax, 0x18
mov word [ebp - 0x12], cx
sub ax, dx
mov word [ebp - 0x10], ax
cmp ax, 0x17
jbe 0x425997
mov edx, 0xffe8
add ax, dx
inc cx
mov word [ebp - 0x10], ax
mov word [ebp - 0x12], cx
cmp cx, 0x20
jne 0x425997
mov ax, word [ebp - 0x16]
xor ecx, ecx
inc ecx
inc ax
mov word [ebp - 0x12], cx
mov word [ebp - 0x16], ax
cmp ax, 0xd
jne 0x425997
inc word [ebp - 0x18]
mov word [ebp - 0x16], cx
fldz
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x18]
push eax
fstp qword [ebp - 0xe4]
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4259e2
fld qword [ebp - 0xe4]
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x4259e2
movzx edx, word [ebp - 0x16]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x18]
shl edx, 0x10
or edx, ecx
mov dword [edi], eax
mov dword [esi], edx
mov esi, dword [ebp - 0xd0]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x425a78
push ebx
call fcn.004293af
mov edi, eax
pop ecx
test edi, edi
jne 0x425a0a
mov eax, 0x8007000e
jmp 0x425a78
push edi
push ebx
push 0
push esi
mov dword [ebp - 0xd4], 0x80004005
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x425a64
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0x40376c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x425a64
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xd0]
and dword [ebp - 0xd4], 0
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [esi], eax
push edi
call fcn.004293bf
mov eax, dword [ebp - 0xd4]
pop ecx
jmp 0x425a78
mov eax, 0x80004005
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 4